From 7a3f44a2bd9f482030abbfd9be9221daa94e4ae1 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Thu, 22 Sep 2016 07:26:57 -0700 Subject: [PATCH] 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 --- react-packager/src/Resolver/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-packager/src/Resolver/index.js b/react-packager/src/Resolver/index.js index 673d9cc9..273e7142 100644 --- a/react-packager/src/Resolver/index.js +++ b/react-packager/src/Resolver/index.js @@ -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'],