code: function getModule(name, loader) {
      var exports;
      var entry = loader.defined[name];
  
      if (!entry) {
        exports = loader.get(name);
        if (!exports)
          throw new Error('Unable to load dependency ' + name + '.');
      }
  
      else {
        if (entry.declarative)
          ensureEvaluated(name, entry, [], loader);
      
        else if (!entry.evaluated)
          linkDynamicModule(entry, loader);
  
        exports = entry.module.exports;
      }
  
      if ((!entry || entry.declarative) && exports && exports.__useDefault)
        return exports['default'];
      
      return exports;
    }
docs: An analog to loader.get covering execution of all three layers (real declarative, simulated declarative, simulated dynamic)