-
-
Notifications
You must be signed in to change notification settings - Fork 754
refactor: don't return option for dependency_id_to_parents #12609
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.
|
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 simplifies the ModuleGraph API by removing an unnecessary Option wrapper from the dependency_id_to_parents HashMap, making the type HashMap<DependencyId, DependencyParents> instead of HashMap<DependencyId, Option<DependencyParents>>.
Key changes:
- Changed the
dependency_id_to_parentsfield type fromHashMap<DependencyId, Option<DependencyParents>>toHashMap<DependencyId, DependencyParents> - Updated all getter methods to work with the simplified structure, removing unnecessary
.as_ref()calls - Changed the revocation logic to remove entries instead of inserting
Nonevalues
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff AnalysisFound 5 projects in monorepo, 5 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 react-10kPath:
📁 react-1kPath:
📁 react-5kPath:
📁 romePath:
📁 ui-componentsPath:
Generated by Rsdoctor GitHub Action |
📦 Binary Size-limit
🎉 Size decreased by 128bytes from 47.86MB to 47.86MB (⬇️0.00%) |
CodSpeed Performance ReportMerging #12609 will not alter performanceComparing Summary
Footnotes
|
Summary
simplify module_graph api to avoid unnecessary option
Related links
Checklist