瀏覽代碼

chore: tweaks comments

daiwei 1 年之前
父節點
當前提交
f4b04986ae
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      packages/compiler-core/src/transforms/vSkip.ts

+ 1 - 2
packages/compiler-core/src/transforms/vSkip.ts

@@ -147,8 +147,7 @@ export function processSkip(
       )
       if (prop) {
         const slotNode = prop.value.returns as TemplateChildNode[]
-        // clone the slot node to avoid mutating the original one, since it
-        // will be transformed again in ssr slot vnode fallback
+        // using the cloned node for ssr VNode-based slot
         children = context.inSSR ? clone(slotNode) : slotNode
       } else {
         context.onError(