We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566aa9e commit dfebd57Copy full SHA for dfebd57
1 file changed
src/index.js
@@ -318,6 +318,8 @@ function printStats(stats, context) {
318
(compiler).compilers;
319
320
childStatsOptions.colors =
321
+ // rspack compatibility
322
+ firstCompiler.webpack.cli &&
323
typeof firstCompiler.webpack.cli.isColorSupported === "function"
324
? firstCompiler.webpack.cli.isColorSupported()
325
: isColorSupported();
@@ -334,6 +336,8 @@ function printStats(stats, context) {
334
336
if (typeof statsOptions.colors === "undefined") {
335
337
const { compiler } = /** @type {{ compiler: Compiler }} */ (context);
338
statsOptions.colors =
339
340
+ compiler.webpack.cli &&
341
typeof compiler.webpack.cli.isColorSupported === "function"
342
? compiler.webpack.cli.isColorSupported()
343
0 commit comments