Browse Source

Don’t assume re-exported bindings are globals.

Fixes #267.
better-aggressive
Mike Bostock 9 years ago
parent
commit
8c3f09dd37
  1. 2
      src/Module.js

2
src/Module.js

@ -344,7 +344,7 @@ export default class Module {
if ( declaration ) {
declaration.addReference( reference );
} else {
} else if ( statement.node.type !== 'ExportNamedDeclaration' || !this.reexports[ reference.name ] ) {
// TODO handle globals
this.bundle.assumedGlobals[ reference.name ] = true;
}

Loading…
Cancel
Save