Sfoglia il codice sorgente

chore: minor tweaks

daiwei 1 anno fa
parent
commit
6c17a3713f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/compiler-core/src/transforms/vSlot.ts

+ 1 - 1
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)) ||