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:
parent
eaac3b57ee
commit
5d515113e7
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue