From a77d83d0b62a59170d5540c6e13bd9ddca10df05 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 16 Aug 2015 12:16:42 -0400 Subject: [PATCH] dont trace declarations across default boundaries --- src/Module.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Module.js b/src/Module.js index ec4d947..78b363f 100644 --- a/src/Module.js +++ b/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 );