@@ -210,6 +210,10 @@ export function* convertChildren(
210210 yield convertDocumentElement ( child , parent , ctx ) ;
211211 continue ;
212212 }
213+ if ( child . type === "SvelteBoundary" ) {
214+ yield convertSvelteBoundaryElement ( child , parent , ctx ) ;
215+ continue ;
216+ }
213217
214218 throw new Error ( `Unknown type:${ child . type } ` ) ;
215219 }
@@ -415,7 +419,8 @@ function convertSpecialElement(
415419 | Compiler . SvelteDocument
416420 | Compiler . SvelteFragment
417421 | Compiler . SvelteSelf
418- | Compiler . SvelteOptionsRaw ,
422+ | Compiler . SvelteOptionsRaw
423+ | Compiler . SvelteBoundary ,
419424 parent : SvelteSpecialElement [ "parent" ] ,
420425 ctx : Context ,
421426) : SvelteSpecialElement {
@@ -898,6 +903,15 @@ function convertSlotTemplateElement(
898903 return convertSpecialElement ( node , parent , ctx ) ;
899904}
900905
906+ /** Convert for <svelte:boundary> element. */
907+ function convertSvelteBoundaryElement (
908+ node : Compiler . SvelteBoundary ,
909+ parent : SvelteSpecialElement [ "parent" ] ,
910+ ctx : Context ,
911+ ) : SvelteSpecialElement {
912+ return convertSpecialElement ( node , parent , ctx ) ;
913+ }
914+
901915/** Extract element tag and tokens */
902916export function extractElementTags <
903917 E extends SvelteScriptElement | SvelteElement | SvelteStyleElement ,
0 commit comments