diff --git a/rust/parse_ast/src/lib.rs b/rust/parse_ast/src/lib.rs index 786cdee9f0c..bf4632f12a5 100644 --- a/rust/parse_ast/src/lib.rs +++ b/rust/parse_ast/src/lib.rs @@ -19,6 +19,7 @@ pub fn parse_ast(code: String, allow_return_outside_function: bool) -> Vec { let target = EsVersion::EsNext; let syntax = Syntax::Es(EsConfig { allow_return_outside_function, + decorators: true, import_attributes: true, ..Default::default() });