swc_ecma_compat_es2017/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::Deserialize;
use swc_common::Mark;
use swc_ecma_ast::Pass;

pub use self::async_to_generator::async_to_generator;

pub mod async_to_generator;

pub fn es2017(c: Config, unresolved_mark: Mark) -> impl Pass {
    async_to_generator(c.async_to_generator, unresolved_mark)
}

#[derive(Debug, Clone, Copy, Default, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Config {
    pub async_to_generator: async_to_generator::Config,
}