[Pkg-javascript-commits] [uglifyjs] 15/50: add documentation for `side_effects` & `[#@]__PURE__` (#1925)
Jonas Smedegaard
dr at jones.dk
Thu Aug 17 23:06:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository uglifyjs.
commit 9a985139812c07cf31c75b74e038d1f6efc63319
Author: olsonpm <olsonpm at users.noreply.github.com>
Date: Thu May 11 23:29:55 2017 -0500
add documentation for `side_effects` & `[#@]__PURE__` (#1925)
---
README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/README.md b/README.md
index 1d64fcb..8ec101f 100644
--- a/README.md
+++ b/README.md
@@ -443,6 +443,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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list