Skip to content

Commit

Permalink
replace chalk with clorox (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored and lukeed committed Mar 10, 2018
1 parent 020e0a5 commit 820d618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

const chalk = require('chalk');
const clorox = require('clorox');

const errorLabel = 'Syntax error:';
const isLikelyASyntaxError = str => str.includes(errorLabel);
Expand Down Expand Up @@ -55,7 +55,7 @@ function formatMessage(message, isError) {
lines[1] = lines[1].replace(exportRegex, "$1 '$4' does not contain an export named '$3'.");
}

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

// Reassemble & Strip internal tracing, except `webpack:` -- (create-react-app/pull/1050)
return lines.join('\n').replace(stackRegex, '').trim();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"output"
],
"dependencies": {
"chalk": "^2.0.1"
"clorox": "^1.0.3"
}
}

0 comments on commit 820d618

Please sign in to comment.