Skip to content

Commit 5233c8e

Browse files
fix
1 parent 3234c77 commit 5233c8e

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export function SnippetBlock(node, context) {
7171
.../** @type {BlockStatement} */ (context.visit(node.body, child_state)).body
7272
]);
7373

74+
// in dev we use a FunctionExpression (not arrow function) so we can use `arguments`
7475
let snippet = dev
7576
? b.call('$.wrap_snippet', b.id(context.state.analysis.name), b.function(null, args, body))
7677
: b.arrow(args, body);

0 commit comments

Comments
 (0)