From: daiwei Date: Mon, 27 Jan 2025 00:52:53 +0000 (+0800) Subject: chore: tweaks comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4b04986ae22f922bec5fc09c5b0da522f5133b4;p=thirdparty%2Fvuejs%2Fcore.git chore: tweaks comments --- diff --git a/packages/compiler-core/src/transforms/vSkip.ts b/packages/compiler-core/src/transforms/vSkip.ts index b9e5bcf7de..569e04958f 100644 --- a/packages/compiler-core/src/transforms/vSkip.ts +++ b/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(