Crate swc_ecma_transforms_optimization
Source pub use self::simplify::simplifier;
- simplify
- Ported from closure compiler.
- AssertValid
- 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.
- GlobalExprMap
- The key will be compared using [EqIgnoreSpan::eq_ignore_span], and matched
expressions will be replaced with the value.