mirror of https://github.com/status-im/metro.git
throwing for unresolved modules: flip logic
Summary: The current test checks whether the target platform is `'ios'`. When building with windows, errors will also be swallowed silently. This adds a check whether the target platform is `'android'`, where we have to avoid throwing for FB-internal reasons. Reviewed By: martinbigio Differential Revision: D3907025 fbshipit-source-id: 5abeb06b9121265fe1aa3932ad1785f148f04ddf
This commit is contained in:
parent
9bb2082889
commit
7a3f44a2bd
|
@ -105,7 +105,7 @@ class Resolver {
|
|||
preferNativePlatform: true,
|
||||
fileWatcher: opts.fileWatcher,
|
||||
cache: opts.cache,
|
||||
shouldThrowOnUnresolvedErrors: (_, platform) => platform === 'ios',
|
||||
shouldThrowOnUnresolvedErrors: (_, platform) => platform !== 'android',
|
||||
transformCode: opts.transformCode,
|
||||
extraNodeModules: opts.extraNodeModules,
|
||||
assetDependencies: ['react-native/Libraries/Image/AssetRegistry'],
|
||||
|
|
Loading…
Reference in New Issue