Crate swc_ecma_transforms_optimization

Source

Re-exports§

pub use self::simplify::simplifier;

Modules§

simplify
Ported from closure compiler.

Structs§

AssertValid

Functions§

const_modules
debug_assert_valid
Assert in debug mode. This is noop in release build.
inline_globals
Create a global inlining pass, which replaces expressions with the specified value.
inline_globals2
Create a global inlining pass, which replaces expressions with the specified value.
json_parse
Transform to optimize performance of literals.

Type Aliases§

GlobalExprMap
The key will be compared using [EqIgnoreSpan::eq_ignore_span], and matched expressions will be replaced with the value.