Drop the undefined check and just use the ! check

This commit is contained in:
Cristian Bote 2018-02-06 00:00:08 +02:00
parent 67b7c52054
commit b4dcc27fe0

View File

@ -310,7 +310,7 @@ function createConfig(options, entry, format, writeMeta) {
strict: options.strict===true,
legacy: true,
freeze: false,
sourcemap: options.sourcemap===true || options.sourcemap===undefined,
sourcemap: options.sourcemap!==false,
treeshake: {
propertyReadSideEffects: false
},