From 5af2bf17bc7890e2e860d15cdaf19b0a01115abc Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Wed, 2 Nov 2016 08:53:30 -0700 Subject: [PATCH] Stop silently failing for requires on Android Reviewed By: bestander Differential Revision: D4117128 fbshipit-source-id: a11996a322d38e884aad2f095342c1ea723b0d89 --- 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 6f4fb98b..2cef5e12 100644 --- a/react-packager/src/Resolver/index.js +++ b/react-packager/src/Resolver/index.js @@ -102,7 +102,7 @@ class Resolver { preferNativePlatform: true, fileWatcher: opts.fileWatcher, cache: opts.cache, - shouldThrowOnUnresolvedErrors: (_, platform) => platform !== 'android', + shouldThrowOnUnresolvedErrors: () => true, transformCode: opts.transformCode, extraNodeModules: opts.extraNodeModules, assetDependencies: ['react-native/Libraries/Image/AssetRegistry'],