Skip to content

Commit

Permalink
Use eval-source-map instead of cheap-source-map for devtool (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirugh authored and dpatil-magento committed Aug 20, 2019
1 parent 1ace7e2 commit fb3664b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/pwa-buildpack/lib/WebpackTools/configureWebpack.js
Expand Up @@ -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(
{
Expand Down

0 comments on commit fb3664b

Please sign in to comment.