docs: function loadAndResolveConfig(pathName: string): Config {
    debug('resolve', pathName);
    let loadedConfig = requireConfig(pathName);
    let config = {};
  
    // Resolve the plugin require paths...
    config.plugins = (loadedConfig.plugins || []).reduce((list, entry) => {
      // Check if the plugin is referencing a path or a plugin name. If this is a
      // plugin name prefix it.
      if (entry.indexOf('/') === -1) {
        entry = `${PLUGIN_PREFIX}${entry}`;
      }
  
      try {
        debug('resolve module', entry);
        list.push(resolve.sync(entry, {
          basedir: path.dirname(pathName),
        }));
      } catch (err) {
        log.warn(err.message);
      }
  
      return list;
    }, []);
  
    return config;
  }