File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ const ENABLE_ESBUILD = config.options.esbuild;
45
45
const ENABLE_STATS = config . options . stats ;
46
46
const ENABLE_LINTING = config . options . linting ;
47
47
const ENABLE_SOURCE_MAPS = config . options . sourcemaps ;
48
+ const DEV_TOOLS = ENABLE_SOURCE_MAPS ? config . options . devtool ? config . options . devtool : "source-map" : false ;
48
49
const ENABLE_TYPESCRIPT = fs . existsSync ( tsConfigPath ) ;
49
50
const ENABLE_TSCHECKER = ! config . options . disableForkTsChecker ;
50
51
const GENERATE_STATS_FILES = config . options . generateStatsFiles ;
@@ -430,7 +431,7 @@ module.exports = {
430
431
context : __dirname ,
431
432
// Disable verbose logs
432
433
stats : ENABLE_STATS ? "normal" : "errors-only" ,
433
- devtool : ENABLE_SOURCE_MAPS ? "source-map" : false ,
434
+ devtool : DEV_TOOLS ,
434
435
externals : computedExternals ,
435
436
mode : isLocal ? "development" : "production" ,
436
437
performance : {
You can’t perform that action at this time.
0 commit comments