Support SFCs file in AE #14613
-
|
Hi, In fact, they'll be Any idea for this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@rstoenescu Hi, any thinking for this? |
Beta Was this translation helpful? Give feedback.
-
|
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 However, what one can do, if he/she doesn't care about UMD, is to simply write For the reason above and for consistency, the officially UI kit will not be able to supply support for SFC and still have a build system in place (that takes care of commonjs/esm/UMD formats). |
Beta Was this translation helpful? Give feedback.
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
.jsfiles instead of.vue.However, what one can do, if he/she doesn't care about UMD, is to simply write
.vuefiles 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…