remove more unwraps

pull/9801/head
Rich Harris 3 years ago
parent 22811ac64b
commit 517f7f0a91

@ -67,7 +67,7 @@ export function serialize_get_binding(node, state) {
if (binding.kind === 'prop' && binding.node.name === '$$props') {
// Special case for $$props which only exists in the old world
return b.call('$.unwrap', node);
return node;
}
if (

@ -2895,8 +2895,8 @@ export const template_visitors = {
);
const expression = is_default
? b.member(b.call('$.unwrap', b.id('$$props')), b.id('children'))
: b.member(b.member(b.call('$.unwrap', b.id('$$props')), b.id('$$slots')), name, true, true);
? b.member(b.id('$$props'), b.id('children'))
: b.member(b.member(b.id('$$props'), b.id('$$slots')), name, true, true);
const slot = b.call('$.slot', context.state.node, expression, props_expression, fallback);
context.state.init.push(b.stmt(slot));

Loading…
Cancel
Save