Skip to content

Commit

Permalink
fix: only print children compiler time when multi compiler (#3613)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Sep 30, 2024
1 parent 5ada980 commit 8990b69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/provider/createCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export async function createCompiler(options: InitConfigsOptions): Promise<{
const hasErrors = stats.hasErrors();

if (!hasErrors) {
if (statsJson.children && statsJson.children.length > 0) {
// only print children compiler time when multi compiler
if (rspackConfigs.length > 1 && statsJson.children?.length) {
statsJson.children.forEach((c, index) => {
printTime(c, index);
});
Expand Down

0 comments on commit 8990b69

Please sign in to comment.