mirror of https://github.com/status-im/metro.git
Stop silently failing for requires on Android
Reviewed By: bestander Differential Revision: D4117128 fbshipit-source-id: a11996a322d38e884aad2f095342c1ea723b0d89
This commit is contained in:
parent
05d53084c1
commit
5af2bf17bc
|
@ -102,7 +102,7 @@ class Resolver {
|
||||||
preferNativePlatform: true,
|
preferNativePlatform: true,
|
||||||
fileWatcher: opts.fileWatcher,
|
fileWatcher: opts.fileWatcher,
|
||||||
cache: opts.cache,
|
cache: opts.cache,
|
||||||
shouldThrowOnUnresolvedErrors: (_, platform) => platform !== 'android',
|
shouldThrowOnUnresolvedErrors: () => true,
|
||||||
transformCode: opts.transformCode,
|
transformCode: opts.transformCode,
|
||||||
extraNodeModules: opts.extraNodeModules,
|
extraNodeModules: opts.extraNodeModules,
|
||||||
assetDependencies: ['react-native/Libraries/Image/AssetRegistry'],
|
assetDependencies: ['react-native/Libraries/Image/AssetRegistry'],
|
||||||
|
|
Loading…
Reference in New Issue