From c64da6ebcfd244402310d6a464d395b912609357 Mon Sep 17 00:00:00 2001 From: Philipp Weinfurter Date: Fri, 5 Aug 2016 23:51:07 +0200 Subject: [PATCH] Initialize member in constructor, fixes #813 --- src/Bundle.js | 1 - src/Module.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle.js b/src/Bundle.js index 7b937d4..430983b 100644 --- a/src/Bundle.js +++ b/src/Bundle.js @@ -218,7 +218,6 @@ export default class Bundle { this.moduleById.set( id, module ); return this.fetchAllDependencies( module ).then( () => { - module.exportsAll = blank(); keys( module.exports ).forEach( name => { module.exportsAll[name] = module.id; }); diff --git a/src/Module.js b/src/Module.js index 1cac43a..5942901 100644 --- a/src/Module.js +++ b/src/Module.js @@ -35,6 +35,7 @@ export default class Module { // imports and exports, indexed by local name this.imports = blank(); this.exports = blank(); + this.exportsAll = blank(); this.reexports = blank(); this.exportAllSources = [];