Svelte export variable under different name

Viewed 217

How can I export a svelte variable under a different name? This is my current approach, having a variable named selectedAccount which should be exported as value:

<script>
    let selectedAccount;
    export let value;
    $: value = selectedAccount;
</script>

But this seems kind of bloated. Is there a better solution?

1 Answers
Related