Skip to content

Loading times of vue3-sfc-loader vs. http-vue-loader -- lightweight version possible? #50

Answered by FranckFreiburger
dlaidig asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I agree that vue3-sfc-loader is mush slower (and much bigger) that http-vue-loader.
I do my best to reduce the bundle size (but there will certainly be a limit) and to keep it fast.

The big difference between http-vue-loader and vue3-sfc-loader, it the use of @vue/compiler-sfc (and @vue/component-compiler-utils for vue2) which gives much more robust results.

@babel & postcss are certainly the most CPU consuming 3rd party libs in the process. Unfortunately they are required by @vue/compiler-sfc for good reasons (static analysis, css modifications for scope/modules support, ...)

On the vue3-sfc-loader side, babel is used to transpile esm to cjs, statically detect modules dependencies an…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dlaidig
Comment options

@FranckFreiburger
Comment options

@FranckFreiburger
Comment options

@FranckFreiburger
Comment options

Answer selected by dlaidig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants