Skip to content

Commit f001a0c

Browse files
committed
no need to use getters in SSR mode
1 parent af70c69 commit f001a0c

File tree

1 file changed

+1
-5
lines changed
  • packages/svelte/src/compiler/phases/3-transform/server/visitors

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ export function SlotElement(node, context) {
2727
if (attribute.name === 'name') {
2828
expression = b.member(b.member_id('$$props.$$slots'), value, true, true);
2929
} else if (attribute.name !== 'slot') {
30-
if (attribute.metadata.dynamic) {
31-
props.push(b.get(attribute.name, [b.return(value)]));
32-
} else {
33-
props.push(b.init(attribute.name, value));
34-
}
30+
props.push(b.init(attribute.name, value));
3531
}
3632
}
3733
}

0 commit comments

Comments
 (0)