swc_ecma_compat_es2022/
static_blocks.rs1use swc_ecma_ast::*;
2use swc_ecma_compiler::{Compiler, Features};
3
4pub fn static_blocks() -> impl Pass {
5 Compiler::new(swc_ecma_compiler::Config {
6 includes: Features::STATIC_BLOCKS,
7 ..Default::default()
8 })
9}