From 547f41beba43350970fdbe6a5a3793cb5b607847 Mon Sep 17 00:00:00 2001 From: olsonpm Date: Thu, 11 May 2017 23:29:55 -0500 Subject: [PATCH] add documentation for `side_effects` & `[#@]__PURE__` (#1925) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1