Browse Source

Initialize member in constructor, fixes #813

semi-dynamic-namespace-imports
Philipp Weinfurter 8 years ago
parent
commit
c64da6ebcf
  1. 1
      src/Bundle.js
  2. 1
      src/Module.js

1
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;
});

1
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 = [];

Loading…
Cancel
Save