aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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" ]);