fix: distribute proper source maps in npm distribution packages (#9877)

Refs #9101
This commit is contained in:
Oliwia Rogala
2024-04-30 11:11:31 +02:00
committed by GitHub
parent b6805e5635
commit 8c90d5d9d0
8 changed files with 14 additions and 17 deletions

View File

@@ -14,6 +14,7 @@ const {
WebpackBundleSizeAnalyzerPlugin,
} = require("webpack-bundle-size-analyzer")
const nodeExternals = require("webpack-node-externals")
const { getDevtool } = require("./_helpers")
// const { StatsWriterPlugin } = require("webpack-stats-plugin")
const minimize = true
@@ -44,7 +45,7 @@ const result = configBuilder(
module: true,
},
},
devtool: sourcemaps && minimize ? "source-map" : false,
devtool: getDevtool(sourcemaps, minimize),
externalsType: "module",
externals: [
{