diff --git a/packages/webpack/lib/configs/node.js b/packages/webpack/lib/configs/node.js index ef3ec8aa2..cc16a41b5 100644 --- a/packages/webpack/lib/configs/node.js +++ b/packages/webpack/lib/configs/node.js @@ -169,7 +169,7 @@ module.exports = function getConfig(config, name, buildDependencies) { maxEntrypointSize: 52428800, maxAssetSize: 52428800, }, - devtool: 'inline-source-map', + devtool: 'source-map', watchOptions: { aggregateTimeout: 300, ignored: /node_modules/ }, }; }; diff --git a/packages/webpack/lib/utils/compiler.js b/packages/webpack/lib/utils/compiler.js index 468d46d2f..6367f9bd2 100644 --- a/packages/webpack/lib/utils/compiler.js +++ b/packages/webpack/lib/utils/compiler.js @@ -21,7 +21,7 @@ function startCompilation(webpackConfig, options = {}) { const compiler = createCompiler(webpackConfig); const output = join(webpackConfig.output.path, webpackConfig.output.filename); - sourceMapSupport.install({ environment: 'node', hookRequire: true }); + sourceMapSupport.install({ environment: 'node' }); return new Observable((subscriber) => { const callback = (error, stats) => {