feat(mf): layer-aware sharing and runtime scope-array support#12977
feat(mf): layer-aware sharing and runtime scope-array support#12977ScriptedAlchemy wants to merge 13 commits intomainfrom
Conversation
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 increased by 27.88KB from 48.59MB to 48.62MB (⬆️0.06%) |
Merging this PR will not alter performance
Comparing Footnotes
|
test: retry native watcher watch steps Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Summary
This PR adds first-class layer-aware Module Federation behavior in Rspack and ports a comprehensive layer test matrix under
serialCases/container-1-5.Motivation
Layered MF usage (
default,ssr,rsc, and custom layers) needs consistent share resolution and runtime behavior across container, reference, consume, and provide paths. This PR aligns those paths and adds regression coverage.What Changed
collect,consume,provide, and runtime modules) to preserve layer context.crates/rspack_binding_api/.../raw_mf.rs).crates/node_binding/napi-binding.d.ts).packages/rspack/etc/core.api.md).tests/rspack-test/serialCases/container-1-5/1-layers-fulltests/rspack-test/serialCases/container-1-5/2-layers-fulltests/rspack-test/serialCases/container-1-5/3-layers-fulltests/rspack-test/serialCases/container-1-5/4-layers-fulltests/rspack-test/serialCases/container-1-5/5-layers-fulltests/rspack-test/serialCases/container-1-5/6-layers-fulltests/rspack-test/serialCases/container-1-5/7-layers-fulltests/rspack-test/serialCases/container-1-5/8-layers-fullMF.mdandRSC.mddesign/context documents used during this implementation.Diff Snapshot
crates/rspack_plugin_mf/**packages/rspack/src/container/**packages/rspack/src/sharing/**tests/rspack-test/serialCases/container-1-5/**Compatibility
Validation
fix(mf): format rust files for CI).