swc_ecma_compat_es2015

Function es2015

source
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.