diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-24 01:56:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 09:56:02 +0800 |
commit | 6988cd95584ce8b66716c17afad9d2dcc71717d0 (patch) | |
tree | f120244c759de2ecc2b53329602a2fd3569d4633 /README.md | |
parent | 2390fae5c4b008aa1028ffdddaa071e4084ef8ac (diff) | |
download | tracifyjs-6988cd95584ce8b66716c17afad9d2dcc71717d0.tar.gz tracifyjs-6988cd95584ce8b66716c17afad9d2dcc71717d0.zip |
replace `keep_fargs` default to `false` (#4443)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -683,9 +683,9 @@ to be `false` and all symbol names will be omitted. - `join_vars` (default: `true`) -- join consecutive `var` statements -- `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_fargs` (default: `false`) -- discard unused function arguments except + when unsafe to do so, e.g. code which relies on `Function.prototype.length`. + Pass `true` to always retain function arguments. - `keep_fnames` (default: `false`) -- Pass `true` to prevent the compressor from discarding function names. Useful for code relying on |