EranGrin / vue-web-component-wrapper

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

How can I build this? #23

Closed kennyredstart closed 4 months ago

kennyredstart commented 5 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 5 months 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 4 months ago

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