Browse Source

dont trace declarations across default boundaries

contingency-plan
Rich-Harris 10 years ago
parent
commit
a77d83d0b6
  1. 1
      src/Module.js

1
src/Module.js

@ -294,6 +294,7 @@ export default class Module {
if ( module.isExternal ) return null;
if ( importDeclaration.name === '*' ) return null;
if ( importDeclaration.name === 'default' ) return null;
const exportDeclaration = module.exports[ importDeclaration.name ];
return module.findDeclaration( exportDeclaration.localName );

Loading…
Cancel
Save