enhance side_effects (#4124)

- add documentation for `merge_vars`
This commit is contained in:
Alex Lam S.L
2020-09-18 14:35:29 +01:00
committed by GitHub
parent 0f0759ec15
commit 38a46c86d7
3 changed files with 29 additions and 1 deletions

View File

@@ -688,6 +688,8 @@ to be `false` and all symbol names will be omitted.
- `loops` (default: `true`) -- optimizations for `do`, `while` and `for` loops
when we can statically determine the condition.
- `merge_vars` (default: `true`) -- combine and reuse variables.
- `negate_iife` (default: `true`) -- negate "Immediately-Called Function Expressions"
where the return value is discarded, to avoid the parens that the
code generator would insert.