Skip to content

Commit

Permalink
fix: skipTemplateCodegen should ignore template slots emit
Browse files Browse the repository at this point in the history
close #2237
  • Loading branch information
johnsoncodehk committed Dec 25, 2022
1 parent 3165a08 commit f89202b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -427,7 +427,7 @@ export function generate(
codeGen.push(`};\n`);
}
else {
if (htmlGen?.hasSlot) {
if (!vueCompilerOptions.skipTemplateCodegen && htmlGen?.hasSlot) {
usedTypes.WithTemplateSlots = true;
codeGen.push(`return {} as __VLS_WithTemplateSlots<typeof __VLS_publicComponent, ReturnType<typeof __VLS_template>>;\n`);
}
Expand Down

0 comments on commit f89202b

Please sign in to comment.