diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2013-08-20 17:45:52 +0300 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2013-08-20 17:45:52 +0300 |
commit | ed80b4a534083510082419b305e0b60b395b10c6 (patch) | |
tree | 9a264d89beb4304dfcbdae48572cf4d7e142154e /README.md | |
parent | 4f09df238e15bfb9d03d28ba718c402bad0b1078 (diff) | |
download | tracifyjs-ed80b4a534083510082419b305e0b60b395b10c6.tar.gz tracifyjs-ed80b4a534083510082419b305e0b60b395b10c6.zip |
Move support for `negate_iife` in the compressor, rather than code generator
(the code generator doesn't maintain enough context to know whether
the return value is important or discarded)
Fixes #272
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -209,6 +209,9 @@ to set `true`; it's effectively a shortcut for `foo=true`). and `x = something(), x` into `x = something()` - `warnings` -- display warnings when dropping unreachable code or unused declarations etc. +- `negate_iife` -- negate "Immediately-Called Function Expressions" + where the return value is discarded, to avoid the parens that the + code generator would insert. ### The `unsafe` option @@ -296,10 +299,6 @@ can pass additional arguments that control the code output: you pass `false` then whenever possible we will use a newline instead of a semicolon, leading to more readable output of uglified code (size before gzip could be smaller; size after gzip insignificantly larger). -- `negate-iife` (default `!beautify`) -- prefer negation, rather than - parens, for "Immediately-Called Function Expressions". This defaults to - `true` when beautification is off, and `false` if beautification is on; - pass it manually to force a value. ### Keeping copyright notices or other comments |