From bfa143394ff107d141758b15968b215199b40710 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Tue, 25 Sep 2018 21:24:48 -0400 Subject: [PATCH] Disable source maps for node_modules (#5096) --- config/webpack.config.dev.js | 5 +++++ config/webpack.config.prod.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 09e282caa4a..e1b001952c3 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -308,6 +308,11 @@ module.exports = { ]), // @remove-on-eject-end highlightCode: true, + // If an error happens in a package, it's possible to be + // because it was compiled. Thus, we don't want the browser + // debugger to show the original code. Instead, the code + // being evaluated would be much more helpful. + sourceMaps: false, }, }, ], diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index ec94170fd6e..e10485de3b4 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -342,6 +342,11 @@ module.exports = { ]), // @remove-on-eject-end highlightCode: true, + // If an error happens in a package, it's possible to be + // because it was compiled. Thus, we don't want the browser + // debugger to show the original code. Instead, the code + // being evaluated would be much more helpful. + sourceMaps: false, }, }, ],