From 09b9c2ff7176c723894d7ae529fcc5761e8fa053 Mon Sep 17 00:00:00 2001 From: Jason Laster Date: Thu, 3 Jan 2019 10:29:39 -0500 Subject: [PATCH] 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. --- packages/react-scripts/config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 3696597fb44..dc7f31964d7 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -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: [