Skip to content

Commit

Permalink
misc(revert): revert supports-color usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Mar 1, 2018
1 parent 7ef13ef commit 75f706b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/process-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = function processOptions(yargs, argv) {
});

if (typeof outputOptions.colors === "undefined")
outputOptions.colors = require("supports-color").stdout;
outputOptions.colors = require("supports-color");

ifArg("sort-modules-by", function(value) {
outputOptions.modulesSort = value;
Expand Down
4 changes: 2 additions & 2 deletions bin/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
type: "boolean",
alias: "colors",
default: function supportsColor() {
return require("supports-color").stdout;
return require("supports-color");
},
group: DISPLAY_GROUP,
describe: "Enables/Disables colors on the console"
Expand Down Expand Up @@ -318,7 +318,7 @@
});

if (typeof outputOptions.colors === "undefined")
outputOptions.colors = require("supports-color").stdout;
outputOptions.colors = require("supports-color");

ifArg("sort-modules-by", function(value) {
outputOptions.modulesSort = value;
Expand Down
2 changes: 1 addition & 1 deletion lib/migrate/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`transform should not transform if no transformations defined:
exports[`
module.exports = {
devtool: 'eval',
entry: [
Expand Down

0 comments on commit 75f706b

Please sign in to comment.