Switch to eval-source-map (#5060)

Switches to eval-source-map, which is easier for webpack to recompute
when a file changes and has column based mappings, which lets firefox
devtools show original variable in the debugger and evaluate original
expressions in the console.
This commit is contained in:
Jason Laster
2019-01-06 22:42:05 -05:00
committed by Joe Haddad
parent 005ee5b952
commit 773d103986

View File

@@ -131,7 +131,7 @@ module.exports = function(webpackEnv) {
? shouldUseSourceMap
? 'source-map'
: false
: isEnvDevelopment && 'cheap-module-source-map',
: isEnvDevelopment && 'eval-source-map',
// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
entry: [