Skip to content

Advise on creating a Vue 2 / Vue 3 compatible component library #7055

Discussion options

You must be logged in to vote

I would recommend shipping/distributing SFCs rather than the output of compiled projects, and then directly using these in the target project. I have a WIP vite plugin for 'compiling' SFC -> distributable SFC (will share later), or you might investigate https://github.com/unjs/mkdist for a 'light transpilation' approach.

If you do want to go for the compiled approach, you might also be interested in https://github.com/JessicaSachs/petite and https://github.com/vue-bridge/vue-bridge.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LinusBorg
Comment options

Answer selected by edison1105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants