diff --git a/crates/oxc_codegen/src/gen.rs b/crates/oxc_codegen/src/gen.rs index fb4ff8e08d4df..65c7c2b5a6d21 100644 --- a/crates/oxc_codegen/src/gen.rs +++ b/crates/oxc_codegen/src/gen.rs @@ -2535,6 +2535,9 @@ impl<'a, const MINIFY: bool> Gen for PropertyDefinition<'a> { fn gen(&self, p: &mut Codegen<{ MINIFY }>, ctx: Context) { p.add_source_mapping(self.span.start); self.decorators.gen(p, ctx); + if self.declare { + p.print_str("declare "); + } if let Some(accessibility) = &self.accessibility { accessibility.gen(p, ctx); }