Skip to content

feat(manifest): report concrete shared provider metadata - #5083

Draft
ScriptedAlchemy wants to merge 2 commits into
mainfrom
feat/shared-provider-metadata-independent
Draft

ScriptedAlchemy wants to merge 2 commits into
mainfrom
feat/shared-provider-metadata-independent

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Sep 15, 2026

Copy link
Copy Markdown
Member

Description

Implement RFC #5082 as an independent draft based on main.

A build can provide React 18 and React 19 under the same shared key. One summary version and a combined asset list cannot tell a reader which files belong to each implementation. Optional shared[].providers records add that version, resolved import, and asset mapping to stats and manifests.

This draft uses main's existing stats collector. It retains existing top-level shared fields and omits the array for single-provider and consumer-only entries. It does not change runtime registration or selection.

Graph collection, scope/layer reconciliation, and Webpack/Rspack output parity remain review requirements. No graph or layer-stack commits, dependency pins, or public identityId field are included.

Related Issue

Feature proposal #5082 and independent Rspack prototype #15687. This draft replaces #5078, which is closed and outside the layers stack. The original branch and commits are preserved there.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Local checks passed. The affected build completed 15 tasks, manifest tests passed 10, and SDK tests passed 69 with one existing skip. Commit hooks, repository formatting, and whitespace checks passed.

The real Webpack fixture checks provider imports, emitted assets, and stats/manifest output. Reader tests cover duplicate pairs, consumer-only omission, and resolved module identifiers. Full-workspace end-to-end tests and native Rspack parity have not been run for this draft.

@changeset-bot

changeset-bot Bot commented Sep 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fc62e00

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 48 packages
Name Type
@module-federation/sdk Patch
@module-federation/manifest Patch
@module-federation/devtools Patch
@module-federation/cli Patch
@module-federation/dts-plugin Patch
@module-federation/enhanced Patch
@module-federation/esbuild Patch
@module-federation/managers Patch
@module-federation/metro Patch
@module-federation/modern-js-v3 Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/observability-plugin Patch
@module-federation/retry-plugin Patch
@module-federation/rsbuild-plugin Patch
@module-federation/rspack Patch
@module-federation/rspress-plugin Patch
@module-federation/rstest Patch
@module-federation/runtime-core Patch
@module-federation/runtime Patch
@module-federation/storybook-addon Patch
@module-federation/utilities Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/metro-plugin-rnef Patch
@module-federation/metro-plugin-rock Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
node-dynamic-remote-new-version Patch
node-dynamic-remote Patch
@module-federation/playground Patch
remote5 Patch
remote6 Patch
website-new Patch
@module-federation/runtime-tools Patch
@module-federation/inject-external-runtime-core-plugin Patch
create-module-federation Patch
@module-federation/error-codes Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/treeshake-frontend Patch
@module-federation/treeshake-server Patch
@module-federation/bridge-shared Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Sep 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@fc62e00

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@fc62e00

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@fc62e00

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@fc62e00

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@fc62e00

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@fc62e00

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@fc62e00

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@fc62e00

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@fc62e00

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@fc62e00

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@fc62e00

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@fc62e00

@module-federation/metro-plugin-rock

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rock@fc62e00

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@fc62e00

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@fc62e00

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@fc62e00

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@fc62e00

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@fc62e00

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@fc62e00

@module-federation/observability-plugin

pnpm add https://pkg.pr.new/@module-federation/observability-plugin@fc62e00

@module-federation/playground

pnpm add https://pkg.pr.new/@module-federation/playground@fc62e00

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@fc62e00

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@fc62e00

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@fc62e00

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@fc62e00

@module-federation/rstest

pnpm add https://pkg.pr.new/@module-federation/rstest@fc62e00

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@fc62e00

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@fc62e00

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@fc62e00

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@fc62e00

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@fc62e00

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@fc62e00

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@fc62e00

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@fc62e00

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@fc62e00

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@fc62e00

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@fc62e00

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@fc62e00

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@fc62e00

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@fc62e00

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@fc62e00

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@fc62e00

commit: fc62e00

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Report

11 package(s) changed, 32 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/manifest 143.8 kB +11.8 kB (+9.0%) 106 B no change
@module-federation/playground 16.07 MB -712 B (-0.0%) 45.6 kB no change
@module-federation/runtime 20.4 kB -13 B (-0.1%) 724 B no change
@module-federation/runtime-tools 7.7 kB -65 B (-0.8%) 142 B no change
@module-federation/sdk 129.3 kB +354 B (+0.3%) 785 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/cli 2.3 kB -7 B (-0.3%) 2.4 kB -34 B (-1.4%)
@module-federation/core 1.0 kB -3 B (-0.3%) 1.0 kB -33 B (-3.0%)
@module-federation/devtools 30.3 kB -4 B (-0.0%) 30.3 kB -28 B (-0.1%)
@module-federation/enhanced 2.7 kB +12 B (+0.4%) 2.8 kB -44 B (-1.5%)
@module-federation/manifest 6.2 kB +701 B (+12.4%) 6.2 kB +701 B (+12.4%)
@module-federation/metro-plugin-rnc-cli 416 B no change 435 B -26 B (-5.6%)
@module-federation/node 9.1 kB no change 9.2 kB -30 B (-0.3%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 22.3 kB -13 B (-0.1%) 23.8 kB -13 B (-0.1%) +1.6 kB 0 B

Total dist (raw): 23.33 MB (+11.4 kB (+0.0%))
Total ESM gzip: 111.4 kB (no change)
Total web bundle (gzip): 253.7 kB (+699 B (+0.3%))
Total node bundle (gzip): 255.9 kB (+506 B (+0.2%))
Tracked ./bundler entry gzip: 563 B (no change)
Tracked ./bundler web bundle (gzip): 4.9 kB (no change)
Tracked ./bundler node bundle (gzip): 4.9 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant