Recently, I created a React+Webpack project and noticed that it takes 60 seconds to build the initial bundle, and only 1 second to append incremental changes. Surprisingly, this is without even adding my application code yet! It seems that the node_modules bundle is very resource-intensive. I attempted to split the bundles using common chunks, but unfortunately, it did not result in any performance improvements.
I am curious, how can I configure Webpack to bundle node_modules only once, without continuously watching for updates in this directory?