diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-02-02 17:39:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 17:39:30 +0000 |
commit | a2f27c7640fee2c981b49ee484a37e1721622bb3 (patch) | |
tree | 67ce8a676c7590f7857b3475cbaee59cd5ca28eb /README.md | |
parent | 3c556b8689346f8256781455c0e1b2f00975570f (diff) | |
download | tracifyjs-a2f27c7640fee2c981b49ee484a37e1721622bb3.tar.gz tracifyjs-a2f27c7640fee2c981b49ee484a37e1721622bb3.zip |
fix corner cases in `templates` (#4610)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -769,6 +769,9 @@ to be `false` and all symbol names will be omitted. - `switches` (default: `true`) -- de-duplicate and remove unreachable `switch` branches +- `templates` (default: `true`) -- compact template literals by embedding expressions + and/or converting to string literals, e.g. `` `foo ${42}` → "foo 42"`` + - `top_retain` (default: `null`) -- prevent specific toplevel functions and variables from `unused` removal (can be array, comma-separated, RegExp or function. Implies `toplevel`) |