metro-bundler: Resolver: handle empty blacklistRE

Reviewed By: cpojer

Differential Revision: D5442309

fbshipit-source-id: f00283bf659100d9269c85b188e2e2fd44cbdc99
This commit is contained in:
Jean Lauliac 2017-07-18 04:26:33 -07:00 committed by Facebook Github Bot
parent e4b94a4d77
commit f58a9fa922

View File

@ -73,7 +73,7 @@ class Resolver {
const depGraphOpts = Object.assign(Object.create(opts), {
assetDependencies: ['react-native/Libraries/Image/AssetRegistry'],
forceNodeFilesystemAPI: false,
ignoreFilePath: opts.blacklistRE,
ignoreFilePath: opts.blacklistRE || / ^/ /* matches nothing */,
moduleOptions: {
hasteImpl: opts.hasteImpl,
resetCache: opts.resetCache,