Skip to content

Conversation

quininer
Copy link
Contributor

Summary

Currently FEDERATION_MODULES_PLUGIN_HOOKS_MAP is not remove anywhere, I followed my previous attempt to remove it in clear_cache. but I am not sure if this behavior is correct.

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@Copilot Copilot AI review requested due to automatic review settings October 20, 2025 13:07
@quininer quininer requested a review from ahabhgk as a code owner October 20, 2025 13:07
Copy link

netlify bot commented Oct 20, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 35e009e
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68f775dd4d38250008d3ed58

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Oct 20, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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.

Copy link
Contributor

github-actions bot commented Oct 20, 2025

📦 Binary Size-limit

Comparing 35e009e to test: display error location in jsdom (#11937) by harpsealjs

🙈 Size remains the same at 47.73MB

Copy link

codspeed-hq bot commented Oct 20, 2025

CodSpeed Performance Report

Merging #11929 will not alter performance

Comparing x/mf-leak (35e009e) with main (126822e)

Summary

✅ 17 untouched

ahabhgk
ahabhgk previously approved these changes Oct 20, 2025
@quininer quininer merged commit 1402b1c into main Oct 22, 2025
96 of 100 checks passed
@quininer quininer deleted the x/mf-leak branch October 22, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants