swc_ecma_transforms_optimization

Function inline_globals

source
pub fn inline_globals(
    envs: Lrc<FxHashMap<Atom, Expr>>,
    globals: Lrc<FxHashMap<Atom, Expr>>,
    typeofs: Lrc<FxHashMap<Atom, Atom>>,
) -> impl Pass
Expand description

Create a global inlining pass, which replaces expressions with the specified value.