Is the client-preset-swc-plugin suppose to work better with Vite than babelOptimizerPlugin? #9651
Unanswered
laukaichung
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My bundle went from 1.3 to 2.1mb (compressed: 500kb) after using client preset. I couldn't get the SWC plugin to work with Vite.js because of the
swc_core
version issue according to #9450. I'm waiting for the fix, so for now I settle for thebabelOptimizerPlugin
but it only reduces by 100kb. Can anyone who has usedclient-preset-swc-plugin
tell me if it can reduce the bundle further thanbabelOptimizerPlugin
with Vite?vite.config.ts
Beta Was this translation helpful? Give feedback.
All reactions