Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanzmj committed Sep 4, 2024
1 parent 2a78ba5 commit 92a4d13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/language-core/lib/codegen/script/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ function* generateTemplateBody(
}
else {
yield `// no template${newLine}`;
yield `const __VLS_slots = {}${endOfLine}`;
if (!options.scriptSetupRanges?.slots.define) {
yield `const __VLS_slots = {}${endOfLine}`;
}
yield `const $refs = {}${endOfLine}`;
yield `const __VLS_inheritedAttrs = {}${endOfLine}`;
}
Expand Down

0 comments on commit 92a4d13

Please sign in to comment.