Skip to content

Commit 3234c77

Browse files
fix
1 parent 8393c94 commit 3234c77

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ 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`
7574
let snippet = dev
7675
? b.call('$.wrap_snippet', b.id(context.state.analysis.name), b.function(null, args, body))
7776
: b.arrow(args, body);

Diff for: packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @import { CallExpression, ArrowFunctionExpression, BlockStatement, Expression, Pattern, Property, SequenceExpression, Statement } from 'estree' */
1+
/** @import { BlockStatement, Expression, Pattern, Property, SequenceExpression, Statement } from 'estree' */
22
/** @import { AST } from '#compiler' */
33
/** @import { ComponentContext } from '../../types.js' */
44
import { empty_comment, build_attribute_value } from './utils.js';

0 commit comments

Comments
 (0)