From be5c3efb2325bca851ee44ee1e37c9acf60749cc Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 24 Jun 2019 22:05:34 -0700 Subject: [PATCH] Fix source maps --- build-scripts/webpack.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-scripts/webpack.js b/build-scripts/webpack.js index 519077bd42..031c72433d 100644 --- a/build-scripts/webpack.js +++ b/build-scripts/webpack.js @@ -19,7 +19,7 @@ version = version[0]; const genMode = (isProdBuild) => (isProdBuild ? "production" : "development"); const genDevTool = (isProdBuild) => - isProdBuild ? "cheap-source-map" : "inline-cheap-module-source-map"; + isProdBuild ? "source-map" : "inline-cheap-module-source-map"; const genFilename = (isProdBuild, dontHash = new Set()) => ({ chunk }) => { if (!isProdBuild || dontHash.has(chunk.name)) { return `${chunk.name}.js`; @@ -81,6 +81,7 @@ const optimization = (latestBuild) => ({ cache: true, parallel: true, extractComments: true, + sourceMap: true, terserOptions: { safari10: true, ecma: latestBuild ? undefined : 5,