Switch from webpack to esbuild? #9708
Replies: 5 comments 1 reply
-
ESBuild is an amazing tool for sure, but to change from Webpack to ESBuild will require A LOT of effort, so it should mature even more IMO. But who knows, maybe Webpack 5 will be much faster than it's now, so slowdown compared to ESBuild will be not that dramatic + federated modules FTW. Anyway, I really hope that the Typescript compiler and all JS tooling will be rewritten in Go, Rust whatever suits best, so it gets HUGE performant improvements everywhere as, surely JS tools are better and better, still too slow as JS is not a good language to process a lot of text and do a lot of computations. |
Beta Was this translation helpful? Give feedback.
-
That also sounds like a great idea, I'm all for it. Even if we're taking smaller steps, I truly believe improvements in compilation/bundling performance of React projects should become a focus in the near future. |
Beta Was this translation helpful? Give feedback.
-
i've been using snowpack along-side CRA, which i believe uses esbuild under the hood. I think it's a little bit concerning if you use one tool (esbuild) for dev and another tool for prod (webpack) and there have been cases where there are incompatibilities. snowpack also has build capabilities but have not tried it out yet. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, this thread is 11months old, today we have 2 brand new webpack plugins: swc-loader and esbuild-loader. Any chance we can get one of these (preference is swc-loader) instead of Babel for js and TS transpiration, as well as jest? The perf boost would be huge! https://github.com/swc-project/swc-loader I'm going to fork react-scripts once v5 is stable, then I'll introduce my personal webpack config but would be nice to see it included in the official version! |
Beta Was this translation helpful? Give feedback.
-
Any thoughts on moving from Webpack to ESBuild? Currently, for big React projects, build times are atrocious. ESBuild seems to significantly improve build times and it already works with React. Is it possible to at least investigate if it is feasible to switch CRA to ESBuild?
Beta Was this translation helpful? Give feedback.
All reactions