Skip to content
Discussion options

You must be logged in to vote

The problem with SFCs is that they need to get compiled with a specific Vue version and this means that it can definitely be consumed by that specific Vue version but it's NOT guaranteed to work with any other version. For this reason, the UI kit uses .js files instead of .vue.

However, what one can do, if he/she doesn't care about UMD, is to simply write .vue files and deliver them as-is (uncompiled, so drop the build system in the UI kit). When those components are imported by the consuming app (q/app-webpack or q/app-vite or any other webpack or vite setup) they'll get compiled with the same Vue version and everything will be just fine.

For the reason above and for consistency, the off…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rstoenescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants