workaround Safari quirks (#5033)

closes #5032
This commit is contained in:
Alex Lam S.L
2021-06-24 10:09:19 +01:00
committed by GitHub
parent 7cbcd11440
commit 82772ccb12
4 changed files with 151 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ function minify(files, options) {
if (options.keep_fnames) set_shorthand("keep_fnames", options, [ "compress", "mangle" ]);
if (options.toplevel) set_shorthand("toplevel", options, [ "compress", "mangle" ]);
if (options.v8) set_shorthand("v8", options, [ "mangle", "output" ]);
if (options.webkit) set_shorthand("webkit", options, [ "mangle", "output" ]);
if (options.webkit) set_shorthand("webkit", options, [ "compress", "mangle", "output" ]);
var quoted_props;
if (options.mangle) {
options.mangle = defaults(options.mangle, {