aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-04-10 02:46:38 +0800
committerGitHub <noreply@github.com>2018-04-10 02:46:38 +0800
commit183da16896513c22b73d219affebeb155fb8ecdf (patch)
tree89dcb07c7f71b43e5af0b3c6199ccdb80e2f6afb /README.md
parent87857b0f1bcb428d36cf715d8ac218eebed6a3ff (diff)
downloadtracifyjs-183da16896513c22b73d219affebeb155fb8ecdf.tar.gz
tracifyjs-183da16896513c22b73d219affebeb155fb8ecdf.zip
handle `pure_funcs` under `inline` & `reduce_vars` correctly (#3066)
fixes #3065
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 35859115..92443618 100644
--- a/README.md
+++ b/README.md
@@ -685,7 +685,8 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
pass `pure_funcs: [ 'Math.floor' ]` to let it know that this
function won't produce any side effect, in which case the whole
statement would get discarded. The current implementation adds some
- overhead (compression will be slower).
+ overhead (compression will be slower). Make sure symbols under `pure_funcs`
+ are also under `mangle.reserved` to avoid mangling.
- `pure_getters` (default: `"strict"`) -- If you pass `true` for
this, UglifyJS will assume that object property access