File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 45
45
'--no-map' ,
46
46
'Disable source maps, enabled by default for minified bundles'
47
47
)
48
+ . option ( '--map-exclude-sources' , 'Exclude source code in source maps' )
48
49
. option ( '--no-async-pro, --no-async-to-promises' , 'Leave async/await as is' )
49
50
. option ( '--concurrent' , 'Build concurrently' )
50
51
. option ( '--verbose' , 'Show verbose logs' )
66
67
minify : options . minify ,
67
68
extractCSS : options . extractCss ,
68
69
sourceMap : options . map ,
70
+ sourceMapExcludeSources : options . mapExcludeSources ,
69
71
target : options . target
70
72
} ,
71
73
bundleNodeModules : options . bundleNodeModules ,
Original file line number Diff line number Diff line change @@ -473,7 +473,8 @@ export class Bundler {
473
473
sourcemap :
474
474
typeof config . output . sourceMap === 'boolean'
475
475
? config . output . sourceMap
476
- : minify
476
+ : minify ,
477
+ sourcemapExcludeSources : config . output . sourceMapExcludeSources
477
478
}
478
479
}
479
480
}
Original file line number Diff line number Diff line change @@ -125,10 +125,14 @@ export interface ConfigOutput {
125
125
*/
126
126
extractCSS ?: boolean
127
127
/**
128
- * Generate source map
128
+ * Generate source maps
129
129
* @default `true` for minified bundle, `false` otherwise
130
130
*/
131
131
sourceMap ?: boolean
132
+ /**
133
+ * Exclude source code in source maps
134
+ */
135
+ sourceMapExcludeSources ?: boolean
132
136
/**
133
137
* Output target
134
138
* @default `node`
You can’t perform that action at this time.
0 commit comments