aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolsonpm <olsonpm@users.noreply.github.com>2017-05-11 23:29:55 -0500
committerAlex Lam S.L <alexlamsl@gmail.com>2017-05-12 12:29:55 +0800
commit547f41beba43350970fdbe6a5a3793cb5b607847 (patch)
treeedf9fedaabbc66650a1d26c88a70d43d59fae12c
parentdaaefc17b97247e0be9b959c9f7b34b6e7adb148 (diff)
downloadtracifyjs-547f41beba43350970fdbe6a5a3793cb5b607847.tar.gz
tracifyjs-547f41beba43350970fdbe6a5a3793cb5b607847.zip
add documentation for `side_effects` & `[#@]__PURE__` (#1925)
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index c50a8ecb..205395f0 100644
--- a/README.md
+++ b/README.md
@@ -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