diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-05-13 21:58:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 21:58:04 +0800 |
commit | 2e4fbdeb08ea5a9b78285218fed8b968bdd32172 (patch) | |
tree | 269c1d6502ea53fbce4c4c849d1a32cd2d8db123 /README.md | |
parent | 3bc7cc82bb442d4d07e918b2972b5189ef53c652 (diff) | |
download | tracifyjs-2e4fbdeb08ea5a9b78285218fed8b968bdd32172.tar.gz tracifyjs-2e4fbdeb08ea5a9b78285218fed8b968bdd32172.zip |
enhance `keep_fargs` (#3409)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -664,8 +664,9 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u - `join_vars` (default: `true`) -- join consecutive `var` statements -- `keep_fargs` (default: `true`) -- Prevents the compressor from discarding unused - function arguments. You need this for code which relies on `Function.length`. +- `keep_fargs` (default: `strict`) -- Discard unused function arguments. Code + which relies on `Function.length` will break if this is done indiscriminately, + i.e. when passing `true`. Pass `false` to always retain function arguments. - `keep_fnames` (default: `false`) -- Pass `true` to prevent the compressor from discarding function names. Useful for code relying on |