Skip to content

Commit

Permalink
fix(language-core): fix __VLS_template returns when skipTemplateCodeg…
Browse files Browse the repository at this point in the history
…en enabled
  • Loading branch information
johnsoncodehk committed Aug 27, 2024
1 parent ebb8490 commit 180af0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-core/lib/codegen/script/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function* generateTemplate(
const templateUsageVars = [...getTemplateUsageVars(options, ctx)];
yield `// @ts-ignore${newLine}`;
yield `[${templateUsageVars.join(', ')}]${newLine}`;
yield `return [{}, {}] as const${endOfLine}`;
yield `return { slots: {}, refs: {}, attrs: {} }${endOfLine}`;
yield `}${newLine}`;
}
}
Expand Down

0 comments on commit 180af0b

Please sign in to comment.