Skip to content

Commit 7953154

Browse files
committed
fix(language-core): do not evaluate skipTemplateCodegen when exposing $slots
1 parent 2bb9ce8 commit 7953154

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/language-core/lib/codegen/script/scriptSetup.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,9 @@ function* generateSetupFunction(
313313

314314
if (syntax) {
315315
if (
316-
!options.vueCompilerOptions.skipTemplateCodegen
317-
&& (
318-
scriptSetupRanges.defineSlots
319-
|| options.templateCodegen?.slots.length
320-
|| options.templateCodegen?.dynamicSlots.length
321-
)
316+
scriptSetupRanges.defineSlots
317+
|| options.templateCodegen?.slots.length
318+
|| options.templateCodegen?.dynamicSlots.length
322319
) {
323320
yield `const __VLS_component = `;
324321
yield* generateComponent(options, ctx, scriptSetup, scriptSetupRanges);

0 commit comments

Comments
 (0)