File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,8 @@ function printStats(stats, context) {
318318 ( compiler ) . compilers ;
319319
320320 childStatsOptions . colors =
321+ // rspack compatibility
322+ firstCompiler . webpack . cli &&
321323 typeof firstCompiler . webpack . cli . isColorSupported === "function"
322324 ? firstCompiler . webpack . cli . isColorSupported ( )
323325 : isColorSupported ( ) ;
@@ -334,6 +336,8 @@ function printStats(stats, context) {
334336 if ( typeof statsOptions . colors === "undefined" ) {
335337 const { compiler } = /** @type {{ compiler: Compiler } } */ ( context ) ;
336338 statsOptions . colors =
339+ // rspack compatibility
340+ compiler . webpack . cli &&
337341 typeof compiler . webpack . cli . isColorSupported === "function"
338342 ? compiler . webpack . cli . isColorSupported ( )
339343 : isColorSupported ( ) ;
You can’t perform that action at this time.
0 commit comments