Skip to content

Commit

Permalink
Switch to eval-source-map (facebook#5060)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jasonLaster authored and Timer committed Jan 7, 2019
1 parent 005ee5b commit 773d103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 773d103

Please sign in to comment.