Skip to content

Commit 09b9c2f

Browse files
author
Jason Laster
committed
Switch to eval-source-map
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.
1 parent 4c7c3c5 commit 09b9c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ module.exports = function(webpackEnv) {
131131
? shouldUseSourceMap
132132
? 'source-map'
133133
: false
134-
: isEnvDevelopment && 'cheap-module-source-map',
134+
: isEnvDevelopment && 'eval-source-map',
135135
// These are the "entry points" to our application.
136136
// This means they will be the "root" imports that are included in JS bundle.
137137
entry: [

0 commit comments

Comments
 (0)