mirror of https://github.com/sveltejs/svelte
parent
02520aea48
commit
b788b72862
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: migrate derivations without semicolons
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
let count = 0;
|
||||
$: doubled = count * 2
|
||||
$: ({ quadrupled } = { quadrupled: count * 4 })
|
||||
</script>
|
||||
|
||||
{count} / {doubled} / {quadrupled}
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
let count = 0;
|
||||
let doubled = $derived(count * 2);
|
||||
let { quadrupled } = $derived({ quadrupled: count * 4 });
|
||||
</script>
|
||||
|
||||
{count} / {doubled} / {quadrupled}
|
Loading…
Reference in new issue