From fb3664b006d07b8f029b2a9cb5cb877b3d216e5e Mon Sep 17 00:00:00 2001 From: Stephen Rugh Date: Tue, 20 Aug 2019 14:00:28 -0500 Subject: [PATCH] Use eval-source-map instead of cheap-source-map for devtool (#1581) --- packages/pwa-buildpack/lib/WebpackTools/configureWebpack.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/pwa-buildpack/lib/WebpackTools/configureWebpack.js b/packages/pwa-buildpack/lib/WebpackTools/configureWebpack.js index b1d8f65d94..b858b5affa 100644 --- a/packages/pwa-buildpack/lib/WebpackTools/configureWebpack.js +++ b/packages/pwa-buildpack/lib/WebpackTools/configureWebpack.js @@ -269,7 +269,10 @@ async function configureWebpack({ context, vendor = [], special = {}, env }) { }); if (isDevServer()) { - config.devtool = 'cheap-source-map'; + // Using eval-source-map shows original source (non-transpiled) as + // well as comments. + // See https://webpack.js.org/configuration/devtool/ + config.devtool = 'eval-source-map'; await PWADevServer.configure( {