fix: props with dash #9964 (#9993)

* fix member call

* format
pull/10008/head
adiGuba 1 year ago committed by GitHub
parent 2b8440c1e9
commit 547ab932a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,7 +82,8 @@ export function serialize_get_binding(node, state) {
}
if (binding.prop_alias) {
return b.member(b.id('$$props'), b.id(binding.prop_alias));
const key = b.key(binding.prop_alias);
return b.member(b.id('$$props'), key, key.type === 'Literal');
}
return b.member(b.id('$$props'), node);
}

Loading…
Cancel
Save