Skip to content

Commit

Permalink
fix(language-core): fix incorrect syntax for class component virtual …
Browse files Browse the repository at this point in the history
…code
  • Loading branch information
johnsoncodehk committed Oct 26, 2024
1 parent cd11190 commit 9738d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-core/lib/codegen/script/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function* generateScript(options: ScriptCodegenOptions): Generator<Code,
yield `__VLS_template = () => {${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);
}
}
Expand Down

0 comments on commit 9738d8a

Please sign in to comment.