mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
kill shouldThrowOnUnresolvedErrors option
Summary: Removes the `shouldThrowOnUnresolvedErrors` option, as now it is only ever `() => true` Reviewed By: davidaurelio Differential Revision: D4237711 fbshipit-source-id: 9460f0f0c50dc0d08d17cb7bdeb995825f7051f3
This commit is contained in:
1 parent
4902a03380
commit
b1fd7bd641
5 files changed
+172
-222
No files matched your search
@@ -37,7 +37,6 @@ type ResolveOptions = {|
|
||||
|};
|
||||
|
||||
const platforms = new Set(defaults.platforms);
|
||||
const returnTrue = () => true;
|
||||
|
||||
exports.createResolveFn = function(options: ResolveOptions): ResolveFn {
|
||||
const {
|
||||
@@ -87,7 +86,6 @@ exports.createResolveFn = function(options: ResolveOptions): ResolveFn {
|
||||
platform,
|
||||
platforms,
|
||||
preferNativePlatform: true,
|
||||
shouldThrowOnUnresolvedErrors: returnTrue,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user