Skip to content

Commit fbbb7d9

Browse files
committed
push once
1 parent 3070f67 commit fbbb7d9

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
/** @import { BlockStatement } from 'estree' */
22
/** @import { AST } from '#compiler' */
33
/** @import { ComponentContext } from '../types' */
4-
5-
import {
6-
BLOCK_CLOSE,
7-
BLOCK_OPEN,
8-
EMPTY_COMMENT
9-
} from '../../../../../internal/server/hydration.js';
4+
import { BLOCK_CLOSE, BLOCK_OPEN } from '../../../../../internal/server/hydration.js';
105
import * as b from '../../../../utils/builders.js';
116

127
/**
138
* @param {AST.SvelteBoundary} node
149
* @param {ComponentContext} context
1510
*/
1611
export function SvelteBoundary(node, context) {
17-
context.state.template.push(b.literal(BLOCK_OPEN));
18-
context.state.template.push(/** @type {BlockStatement} */ (context.visit(node.fragment)));
19-
context.state.template.push(b.literal(BLOCK_CLOSE));
12+
context.state.template.push(
13+
b.literal(BLOCK_OPEN),
14+
/** @type {BlockStatement} */ (context.visit(node.fragment)),
15+
b.literal(BLOCK_CLOSE)
16+
);
2017
}

0 commit comments

Comments
 (0)