From 6c17a3713fb8df722aea2c62d42faaf06c7492e9 Mon Sep 17 00:00:00 2001 From: daiwei Date: Fri, 24 Jan 2025 10:38:23 +0800 Subject: [PATCH] chore: minor tweaks --- packages/compiler-core/src/transforms/vSlot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-core/src/transforms/vSlot.ts b/packages/compiler-core/src/transforms/vSlot.ts index a58d6721d73..4ebb24ba05b 100644 --- a/packages/compiler-core/src/transforms/vSlot.ts +++ b/packages/compiler-core/src/transforms/vSlot.ts @@ -413,7 +413,7 @@ function hasForwardedSlots(children: TemplateChildNode[]): boolean { if (hasForwardedSlots(child.branches)) return true break case NodeTypes.SKIP: - const consequent = child.consequent + const { consequent } = child if ( (consequent.type === NodeTypes.IF_BRANCH && hasForwardedSlots(consequent.children)) ||