Ensure babel-preset-env targets input object is not mutated (#7438)
This commit is contained in:
parent
5459c75d64
commit
f004972625
@ -169,7 +169,7 @@ export default function normalizeOptions(opts: Options) {
|
||||
false,
|
||||
),
|
||||
spec: validateBoolOption("loose", opts.spec, false),
|
||||
targets: opts.targets,
|
||||
targets: Object.assign({}, opts.targets),
|
||||
useBuiltIns: validateUseBuiltInsOption(opts.useBuiltIns),
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user