Skip to content

Commit b6f778f

Browse files
committed
const instead of var
1 parent 117508e commit b6f778f

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ export const template_visitors = {
24532453
body = /** @type {import('estree').BlockStatement} */ (context.visit(node.body));
24542454
}
24552455

2456-
context.state.init.push(b.var(node.expression, b.arrow(args, body)));
2456+
context.state.init.push(b.const(node.expression, b.arrow(args, body)));
24572457
if (context.state.options.dev) {
24582458
context.state.init.push(b.stmt(b.call('$.add_snippet_symbol', node.expression)));
24592459
}

0 commit comments

Comments
 (0)