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 ) {
statement.node.specifiers.forEach( specifier => {
let reexport;
let module = this;
let name = specifier.exported.name;
while ( module.reexports[ name ] && module.reexports[ name ].isUsed ) {
reexport = module.reexports[ name ];
module = reexport.module;
name = reexport.importedName;
}
if ( statement.node.specifiers ) {
statement.node.specifiers.forEach( specifier => {
let reexport;
let module = this;
let name = specifier.exported.name;
while ( module.reexports[ name ] && module.reexports[ name ].isUsed ) {
reexport = module.reexports[ name ];
module = reexport.module;
name = reexport.importedName;
}
addDependency( strongDependencies, reexport );
});
addDependency( strongDependencies, reexport );
});
}
}
else {

Loading…
Cancel
Save