swc_core::ecma::utils

Function prepend_stmts

pub fn prepend_stmts<T>(
    to: &mut Vec<T>,
    stmts: impl ExactSizeIterator<Item = T>,
)
where T: StmtLike,
Available on crate features __ecma and __utils only.
Expand description

inject stmts after directives