Skip to content

Commit

Permalink
feat(transformer): turn on async_to_generator and async_generator_fun…
Browse files Browse the repository at this point in the history
…ctions plugins in enable_all
  • Loading branch information
Dunqing committed Nov 6, 2024
1 parent aea85d4 commit 79b2eba
Show file tree
Hide file tree
Showing 5 changed files with 49,476 additions and 887 deletions.
8 changes: 2 additions & 6 deletions crates/oxc_transformer/src/options/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,15 @@ impl EnvOptions {
},
},
es2016: ES2016Options { exponentiation_operator: true },
es2017: ES2017Options {
// Turned off because it is not ready.
async_to_generator: include_unfinished_plugins,
},
es2017: ES2017Options { async_to_generator: true },
es2018: ES2018Options {
// Turned off because it is not ready.
object_rest_spread: if include_unfinished_plugins {
Some(ObjectRestSpreadOptions::default())
} else {
None
},
// Turned off because it is not ready.
async_generator_functions: include_unfinished_plugins,
async_generator_functions: true,
},
es2019: ES2019Options { optional_catch_binding: true },
es2020: ES2020Options { nullish_coalescing_operator: true },
Expand Down
Loading

0 comments on commit 79b2eba

Please sign in to comment.