From 773d10398675ecaa60f3e3d5e0cc731c3de4a918 Mon Sep 17 00:00:00 2001 From: Jason Laster Date: Sun, 6 Jan 2019 22:42:05 -0500 Subject: [PATCH] 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. --- 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 7699d2cb040..ed85b555ea6 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: [