`)
})
+ // #11514
+ test('with static tag + comment', () => {
+ expect(
+ compile(
+ `<transition-group tag="ul"><div v-for="i in list"/><div v-if="false"></div></transition-group>`,
+ ).code,
+ ).toMatchInlineSnapshot(`
+ "const { ssrRenderAttrs: _ssrRenderAttrs, ssrRenderList: _ssrRenderList } = require("vue/server-renderer")
+
+ return function ssrRender(_ctx, _push, _parent, _attrs) {
+ _push(\`<ul\${_ssrRenderAttrs(_attrs)}>\`)
+ _ssrRenderList(_ctx.list, (i) => {
+ _push(\`<div></div>\`)
+ })
+ if (false) {
+ _push(\`<div></div>\`)
+ }
+ _push(\`</ul>\`)
+ }"
+ `)
+ })
+
test('with dynamic tag', () => {
expect(
compile(
context.pushStringPart(` ${scopeId}`)
}
context.pushStringPart(`>`)
- processChildren(node, context, false, true)
+ processChildren(node, context, false, true, true)
context.pushStringPart(`</${tag.value!.content}>`)
}
} else {