Stop silently failing for requires on Android

Reviewed By: bestander

Differential Revision: D4117128

fbshipit-source-id: a11996a322d38e884aad2f095342c1ea723b0d89
This commit is contained in:
Pieter De Baets 2016-11-02 08:53:30 -07:00 committed by Facebook Github Bot
parent 05d53084c1
commit 5af2bf17bc
1 changed files with 1 additions and 1 deletions

View File

@ -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'],