add documentation for side_effects & [#@]__PURE__ (#1925)
This commit is contained in:
@@ -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
|
- `keep_infinity` -- default `false`. Pass `true` to prevent `Infinity` from
|
||||||
being compressed into `1/0`, which may cause performance issues on Chrome.
|
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
|
### The `unsafe` option
|
||||||
|
|
||||||
It enables some transformations that *might* break code logic in certain
|
It enables some transformations that *might* break code logic in certain
|
||||||
|
|||||||
Reference in New Issue
Block a user