File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 40
40
. option ( '-c, --config <file>' , 'Use a custom config file' )
41
41
. option ( '--minimal' , 'Generate minimal output whenever possible' )
42
42
. option ( '--banner' , 'Add banner with pkg info to the bundle' )
43
+ . option (
44
+ '--no-map' ,
45
+ 'Disable source maps, enabled by default for minified bundles'
46
+ )
43
47
. option ( '--no-async-pro, --no-async-to-promises' , 'Leave async/await as is' )
44
48
. option ( '--concurrent' , 'Build concurrently' )
45
49
. option ( '--verbose' , 'Show verbose logs' )
59
63
moduleName : options . moduleName ,
60
64
fileName : options . fileName ,
61
65
minify : options . minify ,
62
- extractCSS : options . extractCss
66
+ extractCSS : options . extractCss ,
67
+ sourceMap : options . map
63
68
} ,
64
69
bundleNodeModules : options . bundleNodeModules ,
65
70
env : options . env ,
Original file line number Diff line number Diff line change @@ -186,7 +186,10 @@ export class Bundler {
186
186
187
187
// Always minify if config.minify is truthy
188
188
// Otherwise infer by format
189
- const minify = config . output . minify || format . endsWith ( '-min' )
189
+ const minify =
190
+ config . output . minify === undefined
191
+ ? format . endsWith ( '-min' )
192
+ : config . output . minify
190
193
let minPlaceholder = ''
191
194
let rollupFormat : RollupFormat
192
195
if ( format . endsWith ( '-min' ) ) {
You can’t perform that action at this time.
0 commit comments