diff --git a/packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js b/packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js index 122e664f4bb2..a522310203c9 100644 --- a/packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js +++ b/packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js @@ -98,7 +98,10 @@ export function VariableDeclaration(node, context) { const invalidation_id = /** @type {Identifier} */ (pattern.elements[1]); declarations.push( b.declarator(state_id, value), - b.declarator(invalidation_id, b.arrow([b.id('$$fn')], b.chain_call(b.id('$$fn'), state_id))) + b.declarator( + invalidation_id, + b.arrow([b.id('$$fn')], b.chain_call(b.id('$$fn'), state_id)) + ) ); continue; }