Skip to content

Commit

Permalink
add documentation for side_effects & [#@]__PURE__ (#1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
olsonpm authored and alexlamsl committed May 12, 2017
1 parent f631d64 commit 9a98513
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit 9a98513

Please sign in to comment.