From 9738d8ab72e0e9b338ffb4da854d4eb7873f8e31 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Sat, 26 Oct 2024 17:57:13 +0800 Subject: [PATCH] fix(language-core): fix incorrect syntax for class component virtual code --- packages/language-core/lib/codegen/script/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/language-core/lib/codegen/script/index.ts b/packages/language-core/lib/codegen/script/index.ts index 407fd1b9e3..c174254352 100644 --- a/packages/language-core/lib/codegen/script/index.ts +++ b/packages/language-core/lib/codegen/script/index.ts @@ -124,7 +124,7 @@ export function* generateScript(options: ScriptCodegenOptions): Generator {${newLine}`; const templateCodegenCtx = yield* generateTemplate(options, ctx); yield* generateComponentSelf(options, ctx, templateCodegenCtx); - yield `},${newLine}`; + yield `}${endOfLine}`; yield generateSfcBlockSection(options.sfc.script, classBlockEnd, options.sfc.script.content.length, codeFeatures.all); } }