src/Packager.js
function(buildConfig, path) {
  ensureBlacklistsComputed(buildConfig);
  var buildConfigBlacklistRE = buildConfig.blacklistRE;
  var internalDependenciesBlacklistRE = buildConfig._reactPageBlacklistRE;
  if (BLACKLIST_FILE_EXTS_RE.test(path) ||
      buildConfig._middlewareBlacklistRE.test(path) ||
      internalDependenciesBlacklistRE.test(path) ||
      buildConfigBlacklistRE && buildConfigBlacklistRE.test(path) ||
      buildConfig.ignorePaths && buildConfig.ignorePaths(path)) {
    return true;
  }
  return false;
}
function(buildConfig, path) {
  ensureBlacklistsComputed(buildConfig);
  var buildConfigBlacklistRE = buildConfig.blacklistRE;
  var internalDependenciesBlacklistRE = buildConfig._reactPageBlacklistRE;
  if (BLACKLIST_FILE_EXTS_RE.test(path) ||
      buildConfig._middlewareBlacklistRE.test(path) ||
      internalDependenciesBlacklistRE.test(path) ||
      buildConfigBlacklistRE && buildConfigBlacklistRE.test(path) ||
      buildConfig.ignorePaths && buildConfig.ignorePaths(path)) {
    return true;
  }
  return false;
}
function ( buildConfig , path ) { ensureBlacklistsComputed ( buildConfig ) ; var buildConfigBlacklistRE = buildConfig . blacklistRE ; var internalDependenciesBlacklistRE = buildConfig . _reactPageBlacklistRE ; if ( BLACKLIST_FILE_EXTS_RE . test ( path ) || buildConfig . _middlewareBlacklistRE . test ( path ) || internalDependenciesBlacklistRE . test ( path ) || buildConfigBlacklistRE && buildConfigBlacklistRE . test ( path ) || buildConfig . ignorePaths && buildConfig . ignorePaths ( path ) ) { return true ; } return false ; }
The `react-page` `projectRoot` is the search root. By default, everything
under it is inherently whitelisted. The user may black list certain
directories under it. They should be careful not to blacklist the
`browser-builtins` in `react-page-middleware`.

We ignore any directory that is, or is *inside* of a black listed path.

@param {object} buildConfig React-page build config.
@param {string} path Absolute path in question.
@return {boolean} Whether or not path should be ignored.
The react - page projectRoot is the search root . By default everything under it is inherently whitelisted . The user may black list certain directories under it . They should be careful not to blacklist the browser - builtins in react - page - middleware .