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 117508e commit b6f778fCopy full SHA for b6f778f
packages/svelte/src/compiler/phases/3-transform/client/visitors/template.js
@@ -2453,7 +2453,7 @@ export const template_visitors = {
2453
body = /** @type {import('estree').BlockStatement} */ (context.visit(node.body));
2454
}
2455
2456
- context.state.init.push(b.var(node.expression, b.arrow(args, body)));
+ context.state.init.push(b.const(node.expression, b.arrow(args, body)));
2457
if (context.state.options.dev) {
2458
context.state.init.push(b.stmt(b.call('$.add_snippet_symbol', node.expression)));
2459
0 commit comments