pull/11905/head
Rich Harris 2 years ago
parent 6185ff3847
commit b181a2debb

@ -1244,9 +1244,9 @@ const common_visitors = {
context.state.expression.metadata.dynamic = true; context.state.expression.metadata.dynamic = true;
} }
const is_exported = binding.references.some((reference) => // TODO it would be better to just bail out when we hit the ExportSpecifier node but that's
reference.path.some((path_item) => path_item.type === 'ExportSpecifier') // 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 ( if (
context.state.analysis.runes && context.state.analysis.runes &&

Loading…
Cancel
Save