perf: disable progress bar by default#5342
Merged
chenjiahan merged 3 commits intomainfrom Jun 2, 2025
Merged
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR disables the progress bar by default and updates related docs, types, plugins, and tests to reflect the new behavior.
- Change default
progressBarvalue from production-only tofalse - Update documentation (EN/ZH) and type definitions with
@default false - Remove implicit
ProgressPluginfrom default setup and snapshots
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/zh/config/dev/progress-bar.mdx | Update default to false and refresh examples |
| website/docs/en/config/dev/progress-bar.mdx | Update default to false, adjust wording and examples |
| packages/core/src/types/config.ts | Add @default false to progressBar JSDoc |
| packages/core/src/plugins/progress.ts | Remove fallback enabling logic for production mode |
| packages/core/src/provider/createCompiler.ts | Wrap run hook to emit start log before version debug log |
| packages/core/tests/snapshots/default.test.ts.snap | Remove ProgressPlugin entry from default snapshot |
| e2e/cases/server/multi-server/index.test.ts | Drop explicit progressBar: false settings in tests |
Comments suppressed due to low confidence (2)
website/docs/en/config/dev/progress-bar.mdx:17
- Update or remove this sentence, as the default behavior is now
falserather than production-only.
By default, Rsbuild only enables the progress bar when production building.
packages/core/tests/snapshots/default.test.ts.snap:943
- Add a unit test to assert that
ProgressPluginis not applied by default whenprogressBaris undefined.
ProgressPlugin {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Disable the progress bar for production build by default.
Performance
Tested in https://github.com/rspack-contrib/build-tools-performance.
20k modules
2.5k modules
Checklist