-
-
Notifications
You must be signed in to change notification settings - Fork 757
refactor: remove all option in ModuleGraphData #12568
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
Conversation
✅ Deploy Preview for rspack canceled.
|
Rsdoctor Bundle Diff AnalysisFound 5 projects in monorepo, 0 projects with changes. 📊 Quick Summary
Generated by Rsdoctor GitHub Action |
📦 Binary Size-limit
🎉 Size decreased by 2.25KB from 48.00MB to 48.00MB (⬇️0.00%) |
CodSpeed Performance ReportMerging #12568 will not alter performanceComparing Summary
Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the ModuleGraphData internal data structures by removing Option wrappers from four key fields (modules, dependencies, blocks, module_graph_modules, and connections). This simplification eliminates the need for Option-based removal patterns and makes the code more straightforward by using direct values instead of optional wrappers.
Key changes:
- Changed field types from
Option<T>toTfor modules, dependencies, blocks, and connections - Replaced removal operations using
insert(key, None)with properremove(key)calls - Simplified accessor methods by removing unnecessary
as_ref()andas_mut()conversions
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
followup of #12567
Related links
Checklist