@vitejs/plugin-react-swc takes similar or more time to build than @vitejs/plugin-react #979
Replies: 3 comments 9 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. |
Beta Was this translation helpful? Give feedback.
-
|
@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 |
Beta Was this translation helpful? Give feedback.
-
|
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! |
Beta Was this translation helpful? Give feedback.
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?
Beta Was this translation helpful? Give feedback.
All reactions