@vitejs/plugin-react-swc takes similar or more time to build than @vitejs/plugin-react #979
Replies: 4 comments 10 replies
|
If you don't use any babel options, yeah it's expected that build time don't change. Summary without anything babel or swc specific:
Vite-Rolldown/Vite 8:
If don't need anything special, you should try out Vite-rolldown with plugin-react. |
|
@ArnaudBarre the build time on rolldown if i dont use swc ( which is crashing my build ) its 100x faster. We ve a very large project and I was amazed. I am now trying with swc+rolldown on vite-7 but the dev server wont load - getting vite client not found. Is the rolldown ready to be used in prod apps? as its still in beta |
|
Thanks for the clarification! So the recommended setup for the fastest builds/dev right now is:
Makes sense that oxc → rolldown integration is faster than calling SWC as a JS plugin. HMR doing full page reloads on my side probably means something in the chain isn’t patched yet. One quick question: Thanks,, this helps a lot! |
|
@ArnaudBarre when Im using these treeshaking settings the build size is low but the app is reloading infinitely? on preview ( which runs on prod build If possible could you share a config that has worked well for you any idea what could be the reason? |
Uh oh!
There was an error while loading. Please reload this page.
I just migrated to swc and the results are not that great, the build time on avg its coming more or less around before the migration. Is that expected?
All reactions