We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a01a5 commit 371f118Copy full SHA for 371f118
packages/svelte/src/compiler/legacy.js
@@ -389,6 +389,20 @@ export function convert(source, ast) {
389
children: node.body.nodes.map((child) => visit(child))
390
};
391
},
392
+ // @ts-expect-error
393
+ SvelteBoundary(node, { visit }) {
394
+ remove_surrounding_whitespace_nodes(node.fragment.nodes);
395
+ return {
396
+ type: 'SvelteBoundary',
397
+ name: 'svelte:boundary',
398
+ start: node.start,
399
+ end: node.end,
400
+ attributes: node.attributes.map(
401
+ (child) => /** @type {Legacy.LegacyAttributeLike} */ (visit(child))
402
+ ),
403
+ children: node.fragment.nodes.map((child) => visit(child))
404
+ };
405
+ },
406
RegularElement(node, { visit }) {
407
return {
408
type: 'Element',
0 commit comments