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
This commit is contained in:
Christoph Pojer 2017-06-16 04:16:01 -07:00 committed by Facebook Github Bot
parent eaac3b57ee
commit 5d515113e7
1 changed files with 1 additions and 3 deletions

View File

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