Skip to content

Commit 865ea05

Browse files
author
Andrew Luca
authoredFeb 10, 2020
fix(typescriptFormatter): use chalk@2 constructor (#8450)
Related #8164 Related #8439
1 parent d45823c commit 865ea05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/react-dev-utils/typescriptFormatter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function formatter(message, useColors) {
2828
}
2929
: message;
3030

31-
const colors = new chalk.Instance({ enabled: useColors });
31+
const colors = new chalk.constructor({ enabled: useColors });
3232
const messageColor = message.isWarningSeverity() ? colors.yellow : colors.red;
3333
const fileAndNumberColor = colors.bold.cyan;
3434

0 commit comments

Comments
 (0)
Please sign in to comment.