-
-
Notifications
You must be signed in to change notification settings - Fork 727
fix(mf): federation modules plugin hooks leak #11929
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 fixes a memory leak in the federation modules plugin by implementing proper cleanup of plugin hooks. The change ensures that federation module plugin hooks are properly removed from the global hooks map when compilation cache is cleared.
- Adds a
clear_cache
method to properly clean up federation module plugin hooks
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
📦 Binary Size-limit
🙈 Size remains the same at 47.73MB |
CodSpeed Performance ReportMerging #11929 will not alter performanceComparing Summary
|
edef5d0
to
0f20475
Compare
Summary
Currently
FEDERATION_MODULES_PLUGIN_HOOKS_MAP
is not remove anywhere, I followed my previous attempt to remove it inclear_cache
. but I am not sure if this behavior is correct.Related links
Checklist