Skip to content

Conversation

2heal1
Copy link
Member

@2heal1 2heal1 commented Sep 28, 2025

Summary

  1. Inject remotesInfos into __webpack_require__.federation.bundlerRuntimeOptions.remotes to help MF support lazy compilation

MF will update the remote chunkMapping and moduleMap with the updated module data . And it needs the remotesInfos which is generated at first build, so we need to inject it into bundler runtime to store it .

  1. always add consumesLoadingData if enable shared

HMR will proxy webapck_require , and MF bundler runtime can not get consumesLoadingData if not add for for the first time

  1. Add ensureChunk if enable lazy compilation

Related links

module-federation/core#4095

Checklist

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

@2heal1 2heal1 requested a review from hardfist as a code owner September 28, 2025 11:04
@github-actions github-actions bot added the release: feature release: feature related release(mr only) label Sep 28, 2025
Copy link

netlify bot commented Sep 28, 2025

Deploy Preview for rspack canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 1a6fa11
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68e8f7878b361e0008c0aa8a

Copy link

codspeed-hq bot commented Sep 28, 2025

CodSpeed Performance Report

Merging #11779 will not alter performance

Comparing 2heal1:feat/inject-mf-remote-infos (1a6fa11) with main (3da2327)1

Summary

✅ 17 untouched

Footnotes

  1. No successful run was found on main (162bfc3) during the generation of this report, so 3da2327 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@2heal1 2heal1 requested a review from ahabhgk as a code owner September 30, 2025 02:32
@2heal1 2heal1 force-pushed the feat/inject-mf-remote-infos branch 2 times, most recently from 543e716 to cc42aca Compare September 30, 2025 09:45
@2heal1 2heal1 changed the title feat(mf): inject remoteInfos to support lazy compilation feat(mf): support lazy compilation Sep 30, 2025
@2heal1
Copy link
Member Author

2heal1 commented Sep 30, 2025

I will update the official MF version if the main logic is acceptable

@2heal1 2heal1 force-pushed the feat/inject-mf-remote-infos branch 2 times, most recently from 418c48a to d5dbd34 Compare October 10, 2025 08:20
@2heal1 2heal1 force-pushed the feat/inject-mf-remote-infos branch from 4356f18 to c747e79 Compare October 10, 2025 08:55
@ahabhgk ahabhgk merged commit b4bf7a8 into web-infra-dev:main Oct 10, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: feature release: feature related release(mr only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants