diff --git a/crates/oxc_codegen/src/gen.rs b/crates/oxc_codegen/src/gen.rs index f149d3ddb..7bf4c666b 100644 --- a/crates/oxc_codegen/src/gen.rs +++ b/crates/oxc_codegen/src/gen.rs @@ -517,10 +517,12 @@ impl<'a, const MINIFY: bool> Gen for Declaration<'a> { p.print_indent(); p.print_space_before_identifier(); decl.gen(p, ctx); + p.print_soft_newline(); } } Self::ClassDeclaration(decl) => { if !decl.is_typescript_syntax() { + p.print_indent(); p.print_space_before_identifier(); decl.gen(p, ctx); p.print_soft_newline();