swc_ecma_transforms_compat

Function es2015

pub fn es2015<C>(
    unresolved_mark: Mark,
    comments: Option<C>,
    c: Config,
) -> impl Pass
where C: Comments + Clone,
Expand description

Compiles es2015 to es5.

§Parameters

§unresolved_mark

Used to generate require calls. See the documentation of regenerator for more details.