From 8c3f09dd37f472b5b5a7fd5e013b717fdcbde9b2 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Wed, 4 Nov 2015 11:51:24 -0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20assume=20re-exported=20bindings?= =?UTF-8?q?=20are=20globals.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #267. --- src/Module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module.js b/src/Module.js index 3bbf32e..1ee1320 100644 --- a/src/Module.js +++ b/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; }