diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-19 09:06:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 09:06:29 +0800 |
commit | eae26756f1419e7e601bae8b44d69f4e80dd0d61 (patch) | |
tree | 2b5e4eb11e177db8c7da1e7b666b693d49a9814c /README.md | |
parent | 43add9416b927703471a1a722f6a73dcecb0dac3 (diff) | |
download | tracifyjs-eae26756f1419e7e601bae8b44d69f4e80dd0d61.tar.gz tracifyjs-eae26756f1419e7e601bae8b44d69f4e80dd0d61.zip |
introduce `unsafe_regexp` (#1970)
fixes #1964
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -462,6 +462,9 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u - `unsafe_proto` (default: false) -- optimize expressions like `Array.prototype.slice.call(a)` into `[].slice.call(a)` +- `unsafe_regexp` (default: false) -- enable substitutions of variables with + `RegExp` values the same way as if they are constants. + - `conditionals` -- apply optimizations for `if`-s and conditional expressions @@ -552,10 +555,10 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u - `keep_infinity` -- default `false`. Pass `true` to prevent `Infinity` from being compressed into `1/0`, which may cause performance issues on Chrome. -- `side_effects` -- default `true`. Pass `false` to disable potentially dropping -functions marked as "pure". A function call is marked as "pure" if a comment -annotation `/*@__PURE__*/` or `/*#__PURE__*/` immediately precedes the call. For -example: `/*@__PURE__*/foo()`; +- `side_effects` -- default `true`. Pass `false` to disable potentially dropping + functions marked as "pure". A function call is marked as "pure" if a comment + annotation `/*@__PURE__*/` or `/*#__PURE__*/` immediately precedes the call. For + example: `/*@__PURE__*/foo();` ## Mangle options |