Verify 'sourceMap' with hasOwnProperty since it can be falsy.

This commit is contained in:
Logan Smyth 2018-09-03 12:21:54 -07:00
parent 4beb977f15
commit dd985c3be3

View File

@ -542,7 +542,7 @@ function normalizeOptions(opts: ValidatedOptions): ValidatedOptions {
// "sourceMap" is just aliased to sourceMap, so copy it over as
// we merge the options together.
if (options.sourceMap) {
if (options.hasOwnProperty("sourceMap")) {
options.sourceMaps = options.sourceMap;
delete options.sourceMap;
}