Skip to content

Commit 93486ef

Browse files
1 parent e1ae01a commit 93486ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const ENABLE_ESBUILD = config.options.esbuild;
4545
const ENABLE_STATS = config.options.stats;
4646
const ENABLE_LINTING = config.options.linting;
4747
const ENABLE_SOURCE_MAPS = config.options.sourcemaps;
48+
const DEV_TOOLS = ENABLE_SOURCE_MAPS ? config.options.devtool ? config.options.devtool : "source-map" : false;
4849
const ENABLE_TYPESCRIPT = fs.existsSync(tsConfigPath);
4950
const ENABLE_TSCHECKER = !config.options.disableForkTsChecker;
5051
const GENERATE_STATS_FILES = config.options.generateStatsFiles;
@@ -430,7 +431,7 @@ module.exports = {
430431
context: __dirname,
431432
// Disable verbose logs
432433
stats: ENABLE_STATS ? "normal" : "errors-only",
433-
devtool: ENABLE_SOURCE_MAPS ? "source-map" : false,
434+
devtool: DEV_TOOLS,
434435
externals: computedExternals,
435436
mode: isLocal ? "development" : "production",
436437
performance: {

0 commit comments

Comments
 (0)