Esbuild is an amazing piece of software. At recurrency.ai we had an app that took almost 5 minutes to compile on stock create-react-app setup.
We moved it to webpack and used esbuild-loader and esbuild minifier. Still using webpack because we needed less and styled-component transforms. Esbuild doesn’t support hot reloading. Also I have a lot of experience tweaking webpack so I’m sticking with it.
Our build times went down to 15-30 seconds. That’s with full minification and sourcemaps.
I did try stock esbuild and that did it in 2 seconds. Webpack adds quite a bit of overhead.
From 5 minutes to 30 seconds without breaking any user facing functionality is still a big win.
Dev loop on hot reload is 100-300ms. Just feels amazing.
We moved it to webpack and used esbuild-loader and esbuild minifier. Still using webpack because we needed less and styled-component transforms. Esbuild doesn’t support hot reloading. Also I have a lot of experience tweaking webpack so I’m sticking with it.
Our build times went down to 15-30 seconds. That’s with full minification and sourcemaps.
I did try stock esbuild and that did it in 2 seconds. Webpack adds quite a bit of overhead.
From 5 minutes to 30 seconds without breaking any user facing functionality is still a big win.
Dev loop on hot reload is 100-300ms. Just feels amazing.