3 ms·
What makes webpack slow is babel. You can remove babel and use esbuild through esbuild-loader to make webpack fast.
by emilsedgh 6y ago
What makes webpack slow is babel.
You can remove babel and use esbuild through esbuild-loader to make webpack fast.
- wildpeaks 6y agoExactly. Babel used to be useful to transition to ES6 back in the day, but I'm very glad I removed it from my Webpack pipelines some years ago, Typescript already covers everything I was using Babel for and gets me Intellisense in editors on top of it. Furthemore, I found out yesterday that Webpack 5 has Assets Modules that can detect non-script imports using "new URL()" syntax as well (https://webpack.js.org/guides/asset-modules/#url-assets https://webpack.js.org/guides/asset-modules/#url-assets), a feature I haven't seen in other bundlers.