Skip to content

feat: implement Default trait for ExtendedStatsOptions struct #11022

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ityuany
Copy link
Contributor

@ityuany ityuany commented Jul 14, 2025

Summary

Add Default implementation for ExtendedStatsOptions to provide sensible default values for build statistics output.

Changes:

  • Implement Default trait for ExtendedStatsOptions
  • Enable essential fields by default: chunks, chunk_modules, errors, warnings, assets, and hash
  • Keep detailed/verbose options disabled by default to maintain clean output

Rationale:
Previously, ExtendedStatsOptions had no default values, requiring users to manually configure every field. This implementation provides a balanced default configuration that shows the most commonly needed information (errors, warnings, chunks, assets, and hashes) while keeping verbose options like module details, source code, and debug information disabled by default.

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added the release: feature release: feature related release(mr only) label Jul 14, 2025
Copy link

netlify bot commented Jul 14, 2025

Deploy Preview for rspack canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 10beff5
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6875169ebb22bc00081fcb21

Copy link

codspeed-hq bot commented Jul 14, 2025

CodSpeed Performance Report

Merging #11022 will improve performances by 53.5%

Comparing ityuany:feat/extended-stats-options-add-default-impl (10beff5) with main (d1d5875)

🎉 Hooray! codspeed-node just leveled up to 4.0.1!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

⚡ 1 improvements
✅ 15 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
bundle@basic-react-production 11.7 ms 7.6 ms +53.5%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: feature release: feature related release(mr only)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant