lib/runtime/index.js
function moduleExport(getters, constant) {
  utils.setESModule(this.exports);
  var entry = Entry.getOrCreate(this.id, this);
  entry.addGetters(getters, constant);
  if (this.loaded) {
    // If the module has already been evaluated, then we need to trigger
    // another round of entry.runSetters calls, which begins by calling
    // entry.runModuleGetters(module).
    entry.runSetters();
  }
}
function moduleExport(getters, constant) {
  utils.setESModule(this.exports);
  var entry = Entry.getOrCreate(this.id, this);
  entry.addGetters(getters, constant);
  if (this.loaded) {
    // If the module has already been evaluated, then we need to trigger
    // another round of entry.runSetters calls, which begins by calling
    // entry.runModuleGetters(module).
    entry.runSetters();
  }
}
function moduleExport ( getters , constant ) { utils . setESModule ( this . exports ) ; var entry = Entry . getOrCreate ( this . id , this ) ; entry . addGetters ( getters , constant ) ; if ( this . loaded ) { // If the module has already been evaluated, then we need to trigger // another round of entry.runSetters calls, which begins by calling // entry.runModuleGetters(module). entry . runSetters ( ) ; } }
Register getter functions for local variables in the scope of an export statement. Pass true as the second argument to indicate that the getter functions always return the same values.
Register getter functions for local variables in the scope of an export statement . Pass true as the second argument to indicate that the getter functions always return the same values .