Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow overriding webpack's devtool setting #6027
I've noticed that incremental builds are starting to get slow again which is a drain on (my) productivity.
This PR allows one to override this setting with an environment variable so that folks that want to trade sourcemap quality for build speed can go ahead and do that.
How to test
Fire up your terminal and run this:
Then, make some code changes. Notice that incremental builds are quick.
I'd considered this exact thing in #5931, including looking through a number of the other devtool options. As someone who frequently debugs with the sources tab, I'm very sensitive to the numerous quirks of varying options, and have found the existing option to work much better than all others.
The reason I had chosen not to introduce the option was a slight persuasive intent to encourage developers into becoming more familiar with debugging in DevTools
Personally I'm okay if it's left undocumented. It's an advanced development workflow feature that doesn't need to be surfaced.