Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 865ea05

Browse files
author
Andrew Luca
authored
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /