Skip to content

Commit

Permalink
fix: should not log compile warning when warning is ignored (#2171)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Apr 22, 2024
1 parent de00d5c commit 22d76c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/provider/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ export function formatStats(
};
}

if (stats.hasWarnings()) {
if (warnings.length) {
const title = color.bold(color.yellow('Compile Warning: \n'));

return {
message: `${title}${`${warnings.join('\n\n') || color.yellow("For more details, please setting 'stats.warnings: true'")}\n`}`,
message: `${title}${warnings.join('\n\n')}\n`,
level: 'warning',
};
}
Expand Down

0 comments on commit 22d76c6

Please sign in to comment.