diff options
author | kzc <zaxxon2011@gmail.com> | 2015-10-05 19:51:09 -0400 |
---|---|---|
committer | Richard van Velzen <rvanvelzen@experty.com> | 2015-10-07 10:00:28 +0200 |
commit | 593677d2ff04f61a2230c18722ec89b820ee0307 (patch) | |
tree | 1d50764328efcbc04d82ffbfb010c09b10cbc539 /bin/uglifyjs | |
parent | c69294c44929d728807bdeabac8a024f108f198b (diff) | |
download | tracifyjs-593677d2ff04f61a2230c18722ec89b820ee0307.tar.gz tracifyjs-593677d2ff04f61a2230c18722ec89b820ee0307.zip |
Add proper support for "use asm"; blocks. Disable -c optimization within "use asm"; sections and preserve floating point literals in their original form. Non-asm.js sections are optimized as before. Asm.js sections can still be mangled and minified of whitespace. No special command line flags are required.
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-x | bin/uglifyjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index fbb053d8..00342b8f 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -401,7 +401,7 @@ async.eachLimit(files, 1, function (file, cb) { writeNameCache("props", cache); })(); - var SCOPE_IS_NEEDED = COMPRESS || MANGLE || ARGS.lint; + var SCOPE_IS_NEEDED = COMPRESS || MANGLE || BEAUTIFY || ARGS.lint; var TL_CACHE = readNameCache("vars"); if (SCOPE_IS_NEEDED) { |