introduce assignments (#3345)

This commit is contained in:
Alex Lam S.L
2019-03-18 21:28:41 +08:00
committed by GitHub
parent 7aa7f21872
commit 615ae37ca3
8 changed files with 124 additions and 9 deletions

View File

@@ -605,6 +605,8 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
- `arguments` (default: `true`) -- replace `arguments[index]` with function
parameter name whenever possible.
- `assignments` (default: `true`) -- apply optimizations to assignment expressions.
- `booleans` (default: `true`) -- various optimizations for boolean context,
for example `!!a ? b : c → a ? b : c`