We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b8440c commit 547ab93Copy full SHA for 547ab93
packages/svelte/src/compiler/phases/3-transform/client/utils.js
@@ -82,7 +82,8 @@ export function serialize_get_binding(node, state) {
82
}
83
84
if (binding.prop_alias) {
85
- return b.member(b.id('$$props'), b.id(binding.prop_alias));
+ const key = b.key(binding.prop_alias);
86
+ return b.member(b.id('$$props'), key, key.type === 'Literal');
87
88
return b.member(b.id('$$props'), node);
89
0 commit comments