no need to use getters in SSR mode

pull/12611/head
Rich Harris 2 years ago
parent af70c6902d
commit f001a0c335

@ -27,11 +27,7 @@ export function SlotElement(node, context) {
if (attribute.name === 'name') {
expression = b.member(b.member_id('$$props.$$slots'), value, true, true);
} else if (attribute.name !== 'slot') {
if (attribute.metadata.dynamic) {
props.push(b.get(attribute.name, [b.return(value)]));
} else {
props.push(b.init(attribute.name, value));
}
props.push(b.init(attribute.name, value));
}
}
}

Loading…
Cancel
Save