Browse Source

fix export * case

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

26
src/Module.js

@ -233,19 +233,21 @@ export default class Module {
} }
else if ( statement.isReexportDeclaration ) { else if ( statement.isReexportDeclaration ) {
statement.node.specifiers.forEach( specifier => { if ( statement.node.specifiers ) {
let reexport; statement.node.specifiers.forEach( specifier => {
let reexport;
let module = this;
let name = specifier.exported.name; let module = this;
while ( module.reexports[ name ] && module.reexports[ name ].isUsed ) { let name = specifier.exported.name;
reexport = module.reexports[ name ]; while ( module.reexports[ name ] && module.reexports[ name ].isUsed ) {
module = reexport.module; reexport = module.reexports[ name ];
name = reexport.importedName; module = reexport.module;
} name = reexport.importedName;
}
addDependency( strongDependencies, reexport ); addDependency( strongDependencies, reexport );
}); });
}
} }
else { else {

Loading…
Cancel
Save