Permalink
Browse files

Don't require prettyFormat in every single bundle.

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 5d515113e7dfdd440f164c50eee516472c6d7ac9
Showing with 1 addition and 3 deletions.
  1. +1 −3 Libraries/Promise.js
View
@@ -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,
@@ -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 =

0 comments on commit 5d51511

Please sign in to comment.