update documentation for reduce_funcs (#2478)
This commit is contained in:
11
README.md
11
README.md
@@ -689,11 +689,12 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
|
|||||||
Specify `"strict"` to treat `foo.bar` as side-effect-free only when
|
Specify `"strict"` to treat `foo.bar` as side-effect-free only when
|
||||||
`foo` is certain to not throw, i.e. not `null` or `undefined`.
|
`foo` is certain to not throw, i.e. not `null` or `undefined`.
|
||||||
|
|
||||||
- `reduce_funcs` (default: `true`) -- Allows single-use functions
|
- `reduce_funcs` (default: `true`) -- Allows single-use functions to be
|
||||||
to be inlined as function expressions when permissible.
|
inlined as function expressions when permissible allowing further
|
||||||
Enabled by default. Option depends on `reduce_vars` being enabled.
|
optimization. Enabled by default. Option depends on `reduce_vars`
|
||||||
For speed critical code this option should be disabled.
|
being enabled. Some code runs faster in the Chrome V8 engine if this
|
||||||
|
option is disabled. Does not negatively impact other major browsers.
|
||||||
|
|
||||||
- `reduce_vars` (default: `true`) -- Improve optimization on variables assigned with and
|
- `reduce_vars` (default: `true`) -- Improve optimization on variables assigned with and
|
||||||
used as constant values.
|
used as constant values.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user