[Pkg-javascript-commits] [uglifyjs] 58/491: add documentation for `side_effects` & `[#@]__PURE__` (#1925)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:21 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit 547f41beba43350970fdbe6a5a3793cb5b607847
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 c50a8ec..205395f 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

-- 
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