perf(memory): disable Rspress file size report#1060
Conversation
Change-Id: I69840099ed218a4ccdaef210e50288fd62db9a6a
✅ Deploy Preview for lynx-doc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughThe build configuration in ChangesBuild Performance Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the Rspress/Rsbuild configuration to disable the post-build file size report output, with an inline comment noting that this can reduce peak memory usage during builds.
Changes:
- Disable file size reporting via
builderConfig.performance.printFileSize = false. - Add a brief configuration comment explaining the motivation (reduce peak build memory).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Testing
npm run buildwas skipped because you requested direct PR submission.Disable Rspress file size report to reduce peak build memory
Disable the Rspress file size report in the build configuration by setting
printFileSize: falseinrspress.config.ts, with an inline comment documenting that this reduces peak memory consumption during the build process.