docs: function requireWrapper(baseModule, moduleId)
  {
    var componentPath
        // translate module to path alias
      , modulePath = this.checkPath(moduleId)
        // get first part of the module path
      , component = (modulePath || '').split('/')[0]
      ;
  
    // shortcut for `empty:` path
    if (modulePath == 'empty:')
    {
      return {};
    }
  
    // check if name and path belong to the app or to node_modules
    if (component && component[0] != '.')
    {
      // - existing file vs. node_modules case
      if (component == modulePath)
      {
        componentPath = path.resolve(this.basePath, modulePath + '.js');
      }
      // - existing folder vs. node_modules member case
      else
      {
        componentPath = path.resolve(this.basePath, component);
      }
  
      if (fs.existsSync(componentPath))
      {
        // everything fits nicely, get the full thing
        // file might not exist at this point
        // but its legit developer's error
        modulePath = path.resolve(this.basePath, modulePath);
      }
    }
  
    if (this.disableCache)
    {
      delete require.cache[require.resolve(modulePath)];
    }
  
    return baseModule.require(modulePath);
  }