Have minify() and tests use figure_out_scope() as uglifyjs CLI does

Clarify docs, help and tests for --support-ie8 and screw_ie8=false
This commit is contained in:
kzc
2016-12-21 10:52:30 -05:00
committed by Richard van Velzen
parent da17766ddd
commit ec2e5fa3a2
5 changed files with 19 additions and 12 deletions

View File

@@ -94,7 +94,7 @@ exports.minify = function(files, options) {
if (options.compress) {
var compress = { warnings: options.warnings };
UglifyJS.merge(compress, options.compress);
toplevel.figure_out_scope();
toplevel.figure_out_scope(options.mangle);
var sq = UglifyJS.Compressor(compress);
toplevel = sq.compress(toplevel);
}