mirror of https://github.com/status-im/metro.git
Silently fail for requires on Android again until we can fix loading image assets from both repos
Reviewed By: blairvanderhoof Differential Revision: D4128218 fbshipit-source-id: d743cdb7a73efc2f46c42217a49c6094fcd3808a
This commit is contained in:
parent
957ce4baca
commit
c296a3ee25
|
@ -100,7 +100,7 @@ class Resolver {
|
||||||
preferNativePlatform: true,
|
preferNativePlatform: true,
|
||||||
fileWatcher: opts.fileWatcher,
|
fileWatcher: opts.fileWatcher,
|
||||||
cache: opts.cache,
|
cache: opts.cache,
|
||||||
shouldThrowOnUnresolvedErrors: () => true,
|
shouldThrowOnUnresolvedErrors: (_, platform) => platform !== 'android',
|
||||||
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