@dominikla/smart-vue-components
[defineCustomElement]: https://v3.vuejs.org/guide/web-components.html#definecustomelement [custom element]: https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements [demo]: https://vue-custom-element-example.netlify.app
1,373
| Install | |
|---|---|
npm install @dominikla/smart-vue-components |
|
| Latest Version: | 2.34.0 |
| Vue: | 3 |
| Last Updated: | Mar 26, 2023 |
| Links: | npm |
Maintainer: dominikla
Vue 3 Custom Elements as a Library
This package is an example on how to package a custom element by using the defineCustomElement API in Vue 3.
In this case, the vue and @vueuse/core dependencies are externalized to
reduce the package size and ensure it uses the same versions as in the host app.
Demo 🚀
Visit the live demo to see the custom element in action.
Development 👨💻
- npm run dev: start the Vite.js build process in
watchmode
Publish 📦
- npm run build: build the package
- npm publish: publish the package
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.34.0 | ^3.2.37 | ||
| 2.33.0 | ^3.2.37 | ||
| 2.32.0 | ^3.2.37 | ||
| 2.31.0 | ^3.2.37 | ||
| 2.30.0 | ^3.2.37 | ||
| 2.29.0 | ^3.2.37 | ||
| 2.28.0 | ^3.2.37 | ||
| 2.27.0 | ^3.2.37 | ||
| 2.26.0 | ^3.2.37 | ||
| 2.25.0 | ^3.2.37 | ||
| 2.24.0 | ^3.2.37 | ||
| 2.23.0 | ^3.2.37 | ||
| 2.22.0 | ^3.2.37 | ||
| 2.19.0 | ^3.2.37 | ||
| 2.16.0 | ^3.2.37 | ||
| 2.15.0 | ^3.2.37 | ||
| 2.14.0 | ^3.2.37 | ||
| 2.13.0 | ^3.2.37 | ||
| 2.12.0 | ^3.2.37 | ||
| 2.11.0 | ^3.2.37 | ||
| 2.9.0 | ^3.2.37 | ||
| 2.8.0 | ^3.2.37 | ||
| 2.7.0 | ^3.2.37 | ||
| 2.5.0 | ^3.2.37 | ||
| 2.4.0 | ^3.2.37 | ||
| 2.3.0 | ^3.2 | ||
| 2.1.0 | ^3.2 | ||
| 1.22.0 | ^3.2 | ||
| 1.21.0 | ^3.2 | ||
| 1.19.0 | ^3.2 |
Showing the latest 30 of 42. See every release on npm