Skip to content

Commit 6068ba0

Browse files
committed
cleanup
1 parent d8273cc commit 6068ba0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/svelte/src/compiler/phases/3-transform/server/transform-server.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,15 +1730,7 @@ const template_visitors = {
17301730
}
17311731
}
17321732

1733-
const state = {
1734-
...context.state,
1735-
// TODO this logic eventually belongs in create_block, when fragments are used everywhere
1736-
scope: /** @type {import('../../scope').Scope} */ (context.state.scopes.get(node.fragment))
1737-
};
1738-
const body = create_block(node, node.fragment, node.fragment.nodes, {
1739-
...context,
1740-
state
1741-
});
1733+
const body = create_block(node, node.fragment, node.fragment.nodes, context);
17421734

17431735
context.state.template.push(t_statement(b.block(body)));
17441736
},

0 commit comments

Comments
 (0)