expand symbol space to improve compression (#2460)
- give globally distinct names to distinct variables - improve ability to compress cross-scoped - introduce `options.rename` to `minify()` - default `true` if both `compress` & `mangle`
This commit is contained in:
@@ -323,7 +323,8 @@ describe("minify", function() {
|
||||
Uglify.minify(ast, {
|
||||
compress: {
|
||||
sequences: false
|
||||
}
|
||||
},
|
||||
mangle: false
|
||||
});
|
||||
assert.ok(stat.body);
|
||||
assert.strictEqual(stat.print_to_string(), "a=x()");
|
||||
|
||||
Reference in New Issue
Block a user