Skip to content

Commit e2b569f

Browse files
committed
try this
1 parent afefafe commit e2b569f

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/compiler/phases/2-analyze

1 file changed

+2
-2
lines changed

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,8 @@ export function analyze_component(root, source, options) {
790790

791791
const binding = analysis.module.scope.get(specifier.local.name);
792792
if (!binding) {
793-
const instance_binding = analysis.instance.scope.get(specifier.local.name);
794-
if (instance_binding?.kind === 'snippet') {
793+
const template_binding = analysis.template.scope.get(specifier.local.name);
794+
if (template_binding?.kind === 'snippet') {
795795
e.snippet_invalid_export(specifier);
796796
} else {
797797
e.export_undefined(specifier, specifier.local.name);

0 commit comments

Comments
 (0)