Re:Developing in a Monorepo While Still Using Webpack
by emilsedgh on Wednesday December 23, 2020 @09:58PM
(#25524671)
What makes webpack slow is babel.
You can remove babel and use esbuild through esbuild-loader to make webpack fast.
[ Parent
| on HN ]
Re:Developing in a Monorepo While Still Using Webpack
by wildpeaks on Thursday December 24, 2020 @05:43AM
(#25526473)
Exactly.
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), a feature I haven't seen in other bundlers.