From 63eb4dfe67b9d9337ed2ce3b8b56786004990db7 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Mon, 28 Nov 2016 05:48:56 -0800 Subject: [PATCH] Stop silently failing for requires on Android Reviewed By: bestander Differential Revision: D4237195 fbshipit-source-id: 51266664a3693d8e942e97ffd0b0ddc7ada74819 --- packager/react-packager/src/Resolver/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/react-packager/src/Resolver/index.js b/packager/react-packager/src/Resolver/index.js index 04f5c0658..00019f5aa 100644 --- a/packager/react-packager/src/Resolver/index.js +++ b/packager/react-packager/src/Resolver/index.js @@ -98,7 +98,7 @@ class Resolver { preferNativePlatform: true, watch: opts.watch, cache: opts.cache, - shouldThrowOnUnresolvedErrors: (_, platform) => platform !== 'android', + shouldThrowOnUnresolvedErrors: () => true, transformCode: opts.transformCode, transformCacheKey: opts.transformCacheKey, extraNodeModules: opts.extraNodeModules,