From 75f706b6b9d40e9911c65b01e55ce8b32b714aa2 Mon Sep 17 00:00:00 2001 From: dhruvdutt Date: Thu, 1 Mar 2018 20:30:52 +0530 Subject: [PATCH] misc(revert): revert supports-color usage --- bin/process-options.js | 2 +- bin/webpack.js | 4 ++-- lib/migrate/__snapshots__/index.test.js.snap | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/process-options.js b/bin/process-options.js index 4975899a055..0b938f1669e 100644 --- a/bin/process-options.js +++ b/bin/process-options.js @@ -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; diff --git a/bin/webpack.js b/bin/webpack.js index 26442739bea..d6bce2dc530 100755 --- a/bin/webpack.js +++ b/bin/webpack.js @@ -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" @@ -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; diff --git a/lib/migrate/__snapshots__/index.test.js.snap b/lib/migrate/__snapshots__/index.test.js.snap index 99b88db2e40..f8ee85b75a0 100644 --- a/lib/migrate/__snapshots__/index.test.js.snap +++ b/lib/migrate/__snapshots__/index.test.js.snap @@ -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: [