From 92a4d13432c37235b5e0bbbc664234cf0cc7bb99 Mon Sep 17 00:00:00 2001 From: zhiyuanzmj <260480378@qq.com> Date: Thu, 5 Sep 2024 02:28:30 +0800 Subject: [PATCH] fix: typo --- packages/language-core/lib/codegen/script/template.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/language-core/lib/codegen/script/template.ts b/packages/language-core/lib/codegen/script/template.ts index fe5a104c1c..208bc2ca35 100644 --- a/packages/language-core/lib/codegen/script/template.ts +++ b/packages/language-core/lib/codegen/script/template.ts @@ -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}`; }