Skip to content

Commit 21b0865

Browse files
committed
fix
1 parent 13ca61e commit 21b0865

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ export function VariableDeclaration(node, context) {
9898
const invalidation_id = /** @type {Identifier} */ (pattern.elements[1]);
9999
declarations.push(
100100
b.declarator(state_id, value),
101-
b.declarator(invalidation_id, b.arrow([b.id('$$fn')], b.chain_call(b.id('$$fn'), state_id)))
101+
b.declarator(
102+
invalidation_id,
103+
b.arrow([b.id('$$fn')], b.chain_call(b.id('$$fn'), state_id))
104+
)
102105
);
103106
continue;
104107
}

0 commit comments

Comments
 (0)