Skip to content

Commit 5d51511

Browse files
cpojerfacebook-github-bot
authored andcommitted
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
1 parent eaac3b5 commit 5d51511

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Libraries/Promise.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

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

16-
const prettyFormat = require('pretty-format');
17-
1816
if (__DEV__) {
1917
require('promise/setimmediate/rejection-tracking').enable({
2018
allRejections: true,
@@ -27,7 +25,7 @@ if (__DEV__) {
2725
message = Error.prototype.toString.call(error);
2826
stack = error.stack;
2927
} else {
30-
message = prettyFormat(error);
28+
message = require('pretty-format')(error);
3129
}
3230

3331
const warning =

0 commit comments

Comments
 (0)