Crate swc_core::transforms::optimization
[−]Available on crate feature
__transforms
only.Modules
Ported from closure compiler.
Functions
Assert in debug mode. This is noop in release build.
Create a global inlining pass, which replaces expressions with the specified value.
Create a global inlining pass, which replaces expressions with the specified value.
Transform to optimize performance of literals.
Performs simplify-expr, inlining, remove-dead-branch and dce until nothing changes.
Type Definitions
The key will be compared using EqIgnoreSpan::eq_ignore_span, and matched expressions will be replaced with the value.