diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-04-10 02:46:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 02:46:38 +0800 |
commit | 183da16896513c22b73d219affebeb155fb8ecdf (patch) | |
tree | 89dcb07c7f71b43e5af0b3c6199ccdb80e2f6afb /README.md | |
parent | 87857b0f1bcb428d36cf715d8ac218eebed6a3ff (diff) | |
download | tracifyjs-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.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |