I’ve been working on a project that uses React and ES6 and building all of it using webpack (the project name is “arrow-fine”). There are a few other dependencies as well, like react-leaflet (for maps), react-autocomplete and react-geolocated, but otherwise I feel like it’s a pretty straightforward project. I could be wrong about this, though; I recently had to switch back to pnpm from npm because my node_modules directory was filling up my available disk space and causing errors.
Anyways, webpack now takes a ridiculous amount of time to build my project. The last successful run took 148 seconds, and my most recent run hasn’t completed yet after at least five minutes of waiting. I didn’t even add any new packages or make substantial changes in that time. Any ideas on how to tweak webpack performance? My productivity has ground to a halt because of this.
UPDATE: The run just completed. 496 seconds! That’s eight minutes! How?!