]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: tweaks comments
authordaiwei <daiwei521@126.com>
Mon, 27 Jan 2025 00:52:53 +0000 (08:52 +0800)
committerdaiwei <daiwei521@126.com>
Mon, 27 Jan 2025 00:52:53 +0000 (08:52 +0800)
packages/compiler-core/src/transforms/vSkip.ts

index b9e5bcf7de4febd7b1fdc9003846eb3d12a64bc2..569e04958fce233a756e5b1d7369d41251963954 100644 (file)
@@ -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(