Skip to content

Commit c80eabd

Browse files
authored
fix ie8 option alias (#5103)
fixes #5102
1 parent 9b82f9b commit c80eabd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/minify.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ function minify(files, options) {
9797
var timings = options.timings && { start: Date.now() };
9898
if (options.rename === undefined) options.rename = options.compress && options.mangle;
9999
if (options.annotations !== undefined) set_shorthand("annotations", options, [ "compress", "output" ]);
100-
if (options.ie || options.ie8) set_shorthand("ie", options, [ "compress", "mangle", "output" ]);
100+
if (options.ie8) options.ie = options.ie || options.ie8;
101+
if (options.ie) set_shorthand("ie", options, [ "compress", "mangle", "output" ]);
101102
if (options.keep_fnames) set_shorthand("keep_fnames", options, [ "compress", "mangle" ]);
102103
if (options.toplevel) set_shorthand("toplevel", options, [ "compress", "mangle" ]);
103104
if (options.v8) set_shorthand("v8", options, [ "mangle", "output" ]);

0 commit comments

Comments
 (0)