From b181a2debbc68a99db974479eadf33d0edb1dd35 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 4 Jun 2024 12:11:04 -0400 Subject: [PATCH] fix --- packages/svelte/src/compiler/phases/2-analyze/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/svelte/src/compiler/phases/2-analyze/index.js b/packages/svelte/src/compiler/phases/2-analyze/index.js index 4bdd9d7192..24eebac306 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/index.js +++ b/packages/svelte/src/compiler/phases/2-analyze/index.js @@ -1244,9 +1244,9 @@ const common_visitors = { context.state.expression.metadata.dynamic = true; } - const is_exported = binding.references.some((reference) => - reference.path.some((path_item) => path_item.type === 'ExportSpecifier') - ); + // TODO it would be better to just bail out when we hit the ExportSpecifier node but that's + // not currently possibly because of our visitor merging, which I desperately want to nuke + const is_exported = context.path.some((node) => node.type === 'ExportSpecifier'); if ( context.state.analysis.runes &&