We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed10c5 commit 3705b3bCopy full SHA for 3705b3b
packages/compiler-ssr/src/transforms/ssrTransformComponent.ts
@@ -35,7 +35,8 @@ import {
35
CREATE_VNODE,
36
CallExpression,
37
JSChildNode,
38
- RESOLVE_DYNAMIC_COMPONENT
+ RESOLVE_DYNAMIC_COMPONENT,
39
+ TRANSITION
40
} from '@vue/compiler-dom'
41
import { SSR_RENDER_COMPONENT, SSR_RENDER_VNODE } from '../runtimeHelpers'
42
import {
@@ -213,6 +214,10 @@ export function ssrProcessComponent(
213
214
if ((parent as WIPSlotEntry).type === WIP_SLOT) {
215
context.pushStringPart(``)
216
}
217
+ // #5351: filter out comment children inside transition
218
+ if (component === TRANSITION) {
219
+ node.children = node.children.filter(c => c.type !== NodeTypes.COMMENT)
220
+ }
221
processChildren(node, context)
222
223
} else {
0 commit comments