diff --git a/packages/language-core/lib/codegen/script/template.ts b/packages/language-core/lib/codegen/script/template.ts index 43b95da7c9..208bc2ca35 100644 --- a/packages/language-core/lib/codegen/script/template.ts +++ b/packages/language-core/lib/codegen/script/template.ts @@ -147,9 +147,9 @@ function* generateTemplateBody( yield `// no template${newLine}`; if (!options.scriptSetupRanges?.slots.define) { yield `const __VLS_slots = {}${endOfLine}`; - yield `const $refs = {}${endOfLine}`; - yield `const __VLS_inheritedAttrs = {}${endOfLine}`; } + yield `const $refs = {}${endOfLine}`; + yield `const __VLS_inheritedAttrs = {}${endOfLine}`; } yield `return {${newLine}`;