Skip to content

Commit

Permalink
remove chalk from formatWebpackMessages (facebook#10198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams authored and abhiisheek committed May 24, 2023
1 parent 540d510 commit d55feea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/react-dev-utils/formatWebpackMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

'use strict';

const chalk = require('chalk');
const friendlySyntaxErrorLabel = 'Syntax error:';

function isLikelyASyntaxError(message) {
Expand Down Expand Up @@ -80,8 +79,6 @@ function formatMessage(message) {
'Run `npm install node-sass` or `yarn add node-sass` inside your workspace.';
}

lines[0] = chalk.inverse(lines[0]);

message = lines.join('\n');
// Internal stacks are generally useless so we strip them... with the
// exception of stacks containing `webpack:` because they're normally
Expand Down

0 comments on commit d55feea

Please sign in to comment.