From: olsonpm Date: Fri, 12 May 2017 04:29:55 +0000 (-0500) Subject: add documentation for `side_effects` & `[#@]__PURE__` (#1925) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=547f41beba43350970fdbe6a5a3793cb5b607847;p=UglifyJS.git add documentation for `side_effects` & `[#@]__PURE__` (#1925) --- 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