aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-11-11 05:59:35 +0800
committerGitHub <noreply@github.com>2017-11-11 05:59:35 +0800
commit3c740473686178c242f66d3ad330e1b047335b5f (patch)
tree0ee897d27731ae245c07deeddb06d183f342b976 /README.md
parent94525d859f5db559366f96b646aca84438b0f982 (diff)
downloadtracifyjs-3c740473686178c242f66d3ad330e1b047335b5f.tar.gz
tracifyjs-3c740473686178c242f66d3ad330e1b047335b5f.zip
implement compress option `reduce_funcs` (#2466)
- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0d1e2368..22831b12 100644
--- a/README.md
+++ b/README.md
@@ -689,6 +689,11 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
Specify `"strict"` to treat `foo.bar` as side-effect-free only when
`foo` is certain to not throw, i.e. not `null` or `undefined`.
+- `reduce_funcs` (default: `true`) -- Allows single-use functions
+ to be inlined as function expressions when permissible.
+ Enabled by default. Option depends on `reduce_vars` being enabled.
+ For speed critical code this option should be disabled.
+
- `reduce_vars` (default: `true`) -- Improve optimization on variables assigned with and
used as constant values.