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 2a0877b commit b99c8f4Copy full SHA for b99c8f4
packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js
@@ -302,13 +302,9 @@ export const javascript_visitors_runes = {
302
b.id(id),
303
b.call(
304
'$.derived',
305
- b.arrow(
306
- [b.id('$$derived')],
+ b.thunk(
307
b.block([
308
- b.let(
309
- declarator.id,
310
- rune === '$derived.call' ? b.call(value, b.id('$$derived')) : value
311
- ),
+ b.let(declarator.id, rune === '$derived.call' ? b.call(value) : value),
312
b.return(b.array(bindings.map((binding) => binding.node)))
313
])
314
)
0 commit comments