Skip to content

Commit

Permalink
Don't require prettyFormat in every single bundle.
Browse files Browse the repository at this point in the history
Summary:
WTF

(I updated it to the latest version too)

Reviewed By: yungsters

Differential Revision: D5256525

fbshipit-source-id: f3c7d620faf817a0e3c1e4c2bed9370318dff40a
  • Loading branch information
cpojer authored and facebook-github-bot committed Jun 16, 2017
1 parent eaac3b5 commit 5d51511
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Libraries/Promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

const Promise = require('fbjs/lib/Promise.native');

const prettyFormat = require('pretty-format');

if (__DEV__) {
require('promise/setimmediate/rejection-tracking').enable({
allRejections: true,
Expand All @@ -27,7 +25,7 @@ if (__DEV__) {
message = Error.prototype.toString.call(error);
stack = error.stack;
} else {
message = prettyFormat(error);
message = require('pretty-format')(error);
}

const warning =
Expand Down

0 comments on commit 5d51511

Please # to comment.