Skip to content

Commit

Permalink
chore: tweaks comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Jan 27, 2025
1 parent ac55a02 commit f4b0498
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/compiler-core/src/transforms/vSkip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f4b0498

Please sign in to comment.