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 58052bf commit 4fcc7d1Copy full SHA for 4fcc7d1
packages/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js
@@ -23,11 +23,11 @@ export function SnippetBlock(node, context) {
23
24
context.next({ ...context.state, parent_element: null });
25
26
- const local_scope = context.state.scope;
27
const can_hoist =
28
context.path.length === 1 &&
29
context.path[0].type === 'Fragment' &&
30
- can_hoist_snippet(local_scope, context.state.scopes);
+ can_hoist_snippet(context.state.scope, context.state.scopes);
+
31
const undefined_exports = context.state.analysis.undefined_exports;
32
const name = node.expression.name;
33
0 commit comments