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) {
 | 
					      if (!hasProps) {
 | 
				
			||||||
        args.push(`null`)
 | 
					        args.push(`null`)
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      if (isComponent) {
 | 
					      if (isComponent || node.tagType === ElementTypes.SUSPENSE) {
 | 
				
			||||||
        const { slots, hasDynamicSlots } = buildSlots(node, context)
 | 
					        const { slots, hasDynamicSlots } = buildSlots(node, context)
 | 
				
			||||||
        args.push(slots)
 | 
					        args.push(slots)
 | 
				
			||||||
        if (hasDynamicSlots) {
 | 
					        if (hasDynamicSlots) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user