Socket
Socket
Sign inDemoInstall

@dominikla/smart-vue-components

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@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


Version published
Maintainers
1
Created
Source

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 watch mode

Publish 📦

  • npm run build: build the package
  • npm publish: publish the package

FAQs

Package last updated on 26 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc