Skip to content

Commit 517f7f0

Browse files
committed
remove more unwraps
1 parent 22811ac commit 517f7f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/svelte/src/compiler/phases/3-transform/client/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function serialize_get_binding(node, state) {
6767

6868
if (binding.kind === 'prop' && binding.node.name === '$$props') {
6969
// Special case for $$props which only exists in the old world
70-
return b.call('$.unwrap', node);
70+
return node;
7171
}
7272

7373
if (

packages/svelte/src/compiler/phases/3-transform/client/visitors/template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,8 +2895,8 @@ export const template_visitors = {
28952895
);
28962896

28972897
const expression = is_default
2898-
? b.member(b.call('$.unwrap', b.id('$$props')), b.id('children'))
2899-
: b.member(b.member(b.call('$.unwrap', b.id('$$props')), b.id('$$slots')), name, true, true);
2898+
? b.member(b.id('$$props'), b.id('children'))
2899+
: b.member(b.member(b.id('$$props'), b.id('$$slots')), name, true, true);
29002900

29012901
const slot = b.call('$.slot', context.state.node, expression, props_expression, fallback);
29022902
context.state.init.push(b.stmt(slot));

0 commit comments

Comments
 (0)