The build process currently relies on terser-webpack-plugin/Terser, css-minimizer-webpack-plugin/cssnano, babel-loader/Babel to transpile the code and minimize it.
We can replace all of that by using esbuild-loader/ESBuild and have significant speed-up of the build (see those minification benchmarks for example). However our bundles will get a little bigger but in our situation where the first load does not matter that much so it's probably an acceptable trade-off.
Also, it reduces greatly the number of different tools we use so it might be a bit easier to troubleshot issues...