Skip to content

Commit

Permalink
Don’t assume re-exported bindings are globals.
Browse files Browse the repository at this point in the history
Fixes rollup#267.
  • Loading branch information
mbostock committed Nov 4, 2015
1 parent 61a8944 commit 8c3f09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8c3f09d

Please sign in to comment.