diff options
author | olsonpm <olsonpm@users.noreply.github.com> | 2017-05-11 23:29:55 -0500 |
---|---|---|
committer | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-12 12:29:55 +0800 |
commit | 547f41beba43350970fdbe6a5a3793cb5b607847 (patch) | |
tree | edf9fedaabbc66650a1d26c88a70d43d59fae12c | |
parent | daaefc17b97247e0be9b959c9f7b34b6e7adb148 (diff) | |
download | tracifyjs-547f41beba43350970fdbe6a5a3793cb5b607847.tar.gz tracifyjs-547f41beba43350970fdbe6a5a3793cb5b607847.zip |
add documentation for `side_effects` & `[#@]__PURE__` (#1925)
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -409,6 +409,11 @@ to set `true`; it's effectively a shortcut for `foo=true`). - `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 `false`. Pass `true` to potentially drop functions +marked as "pure". (A function is marked as "pure" via the comment annotation +`/* @__PURE__ */` or `/* #__PURE__ */`) + + ### The `unsafe` option It enables some transformations that *might* break code logic in certain |