aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-05-13 21:58:04 +0800
committerGitHub <noreply@github.com>2019-05-13 21:58:04 +0800
commit2e4fbdeb08ea5a9b78285218fed8b968bdd32172 (patch)
tree269c1d6502ea53fbce4c4c849d1a32cd2d8db123 /README.md
parent3bc7cc82bb442d4d07e918b2972b5189ef53c652 (diff)
downloadtracifyjs-2e4fbdeb08ea5a9b78285218fed8b968bdd32172.tar.gz
tracifyjs-2e4fbdeb08ea5a9b78285218fed8b968bdd32172.zip
enhance `keep_fargs` (#3409)
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index a4f76229..270f20cb 100644
--- a/README.md
+++ b/README.md
@@ -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