Browse Source

Merge pull request #830 from phter/gh-813

Initialize member in constructor, fixes #813
semi-dynamic-namespace-imports
Bogdan Chadkin 9 years ago
committed by GitHub
parent
commit
191013066a
  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