aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-07-26 09:45:43 +0100
committerGitHub <noreply@github.com>2021-07-26 16:45:43 +0800
commitc80eabd61edacf82512e5c3376c1dd6588fa1079 (patch)
tree5835de9cce6f5dd5bb7875460d1f4036d53d6b6b /lib
parent9b82f9be9129c98bc02614d15abf957b35778745 (diff)
downloadtracifyjs-c80eabd61edacf82512e5c3376c1dd6588fa1079.tar.gz
tracifyjs-c80eabd61edacf82512e5c3376c1dd6588fa1079.zip
fix `ie8` option alias (#5103)
fixes #5102
Diffstat (limited to 'lib')
-rw-r--r--lib/minify.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/minify.js b/lib/minify.js
index d3394b42..8d4e5d98 100644
--- a/lib/minify.js
+++ b/lib/minify.js
@@ -97,7 +97,8 @@ function minify(files, options) {
var timings = options.timings && { start: Date.now() };
if (options.rename === undefined) options.rename = options.compress && options.mangle;
if (options.annotations !== undefined) set_shorthand("annotations", options, [ "compress", "output" ]);
- if (options.ie || options.ie8) set_shorthand("ie", options, [ "compress", "mangle", "output" ]);
+ if (options.ie8) options.ie = options.ie || options.ie8;
+ if (options.ie) set_shorthand("ie", options, [ "compress", "mangle", "output" ]);
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" ]);