EranGrin / vue-web-component-wrapper

vue3 - web component wrapper plugin
https://erangrin.github.io/vue-web-component-wrapper/
50 stars 5 forks source link

How can I build this? #23

Closed kennyredstart closed 1 month ago

kennyredstart commented 2 months ago

How can I build this so that I can import it as a module ? When using: lib: { entry: './src/main.js', name: 'my-component' // the proper extensions will be added fileName: 'my-component' }

and importing externally as:

it doesn't work... 😞

EranGrin commented 1 month ago

Hi @kennyredstart, I would be glad to help, but I am not quite sure what is the issue, did you try to use the demo project Demo files: https://github.com/EranGrin/vue-web-component-wrapper/tree/main/demo-app-vite Live demo: https://stackblitz.com/edit/vue-web-component-wrapper?file=README.md&startScript=vite-demo

If this doesn't resolve your issue, please provide a more thorough explanation.

EranGrin commented 1 month ago

@kennyredstart please let me know if I can close this issue