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
Uh oh!
There was an error while loading. Please reload this page.
-
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_coreversion issue according to #9450. I'm waiting for the fix, so for now I settle for thebabelOptimizerPluginbut it only reduces by 100kb. Can anyone who has usedclient-preset-swc-plugintell me if it can reduce the bundle further thanbabelOptimizerPluginwith Vite?vite.config.ts
Beta Was this translation helpful? Give feedback.
All reactions