feat(compiler): compile suspense children as slots (#419)
This commit is contained in:
parent
d70497c0d4
commit
4b9483fd5e
@ -120,7 +120,7 @@ export const transformElement: NodeTransform = (node, context) => {
|
||||
if (!hasProps) {
|
||||
args.push(`null`)
|
||||
}
|
||||
if (isComponent) {
|
||||
if (isComponent || node.tagType === ElementTypes.SUSPENSE) {
|
||||
const { slots, hasDynamicSlots } = buildSlots(node, context)
|
||||
args.push(slots)
|
||||
if (hasDynamicSlots) {
|
||||
|
Loading…
Reference in New Issue
Block a user