Stop silently failing for requires on Android

Reviewed By: bestander

Differential Revision: D4237195

fbshipit-source-id: 51266664a3693d8e942e97ffd0b0ddc7ada74819
This commit is contained in:
Pieter De Baets 2016-11-28 05:48:56 -08:00 committed by Facebook Github Bot
parent 59f870b0f6
commit 2be362b017
1 changed files with 1 additions and 1 deletions

View File

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