Skip to content

feat: array share scope#4477

Merged
2heal1 merged 6 commits intomainfrom
fix/array-share-scope
Feb 27, 2026
Merged

feat: array share scope#4477
2heal1 merged 6 commits intomainfrom
fix/array-share-scope

Conversation

@2heal1
Copy link
Copy Markdown
Member

@2heal1 2heal1 commented Feb 25, 2026

Description

  • fix(webpack-bundler-runtime): support multiple share scopes for remotes
  • fix(runtime-core): preserve init scope across module init and avoid self-load init loops
  • docs: add share scope alignment playground component
image

Rspack implementation: web-infra-dev/rspack#13107

Related Issue

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.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 25, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 0936172
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69a15a8b9da2590008baf67a
😎 Deploy Preview https://deploy-preview-4477--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 25, 2026

🦋 Changeset detected

Latest commit: 0936172

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

This PR includes changesets to release 43 packages
Name Type
@module-federation/runtime-core Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/runtime Patch
@module-federation/bridge-react Patch
@module-federation/enhanced Patch
@module-federation/nextjs-mf Patch
@module-federation/runtime-tools Patch
@module-federation/devtools Patch
@module-federation/data-prefetch Patch
@module-federation/dts-plugin Patch
@module-federation/metro Patch
@module-federation/modern-js-v3 Patch
@module-federation/modern-js Patch
@module-federation/node Patch
@module-federation/retry-plugin Patch
@module-federation/bridge-vue3 Patch
@module-federation/rspack Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/metro-plugin-rnef Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
@module-federation/rsbuild-plugin Patch
@module-federation/rspress-plugin Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
remote5 Patch
remote6 Patch
website-new Patch
@module-federation/sdk Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/bridge-shared Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/error-codes Patch
create-module-federation Patch
@module-federation/cli Patch
@module-federation/treeshake-server Patch
@module-federation/treeshake-frontend Patch
@module-federation/esbuild Patch
@module-federation/utilities 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
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 25, 2026

Open in StackBlitz

@module-federation/devtools

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

@module-federation/cli

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

create-module-federation

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

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/data-prefetch@ec75032

@module-federation/dts-plugin

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

@module-federation/enhanced

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

@module-federation/error-codes

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

@module-federation/managers

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

@module-federation/manifest

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

@module-federation/metro

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

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/modern-js-v3

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

@module-federation/retry-plugin

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

@module-federation/rsbuild-plugin

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

@module-federation/rspack

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

@module-federation/rspress-plugin

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

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

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

@module-federation/sdk

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

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

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

@module-federation/treeshake-frontend

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

@module-federation/treeshake-server

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

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

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

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

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

@module-federation/bridge-shared

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

@module-federation/bridge-vue3

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

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

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

commit: ec75032

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 25, 2026

Bundle Size Report

4 package(s) changed, 37 unchanged.

Package Total dist Delta ESM gzip Delta
runtime-core 305.5 kB +473 B (+0.2%) 25.6 kB +100 B (+0.4%)
webpack-bundler-runtime 76.8 kB +288 B (+0.4%) 5.9 kB +32 B (+0.5%)
vue3-bridge 159.0 kB +81 B (+0.0%) 23.2 kB +12 B (+0.1%)
enhanced 1.29 MB -4 B (-0.0%) 744 B no change

Total dist: 6.86 MB (+838 B (+0.0%))
Total ESM gzip: 138.7 kB (+144 B (+0.1%))

@2heal1 2heal1 marked this pull request as ready for review February 26, 2026 02:24
@2heal1 2heal1 changed the title feat: array share scope WIP: feat: array share scope Feb 26, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 67cf1791ce

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@2heal1 2heal1 force-pushed the fix/array-share-scope branch from b9f7895 to c606200 Compare February 26, 2026 11:08
@2heal1 2heal1 changed the title WIP: feat: array share scope feat: array share scope Feb 26, 2026
@2heal1 2heal1 force-pushed the fix/array-share-scope branch from ec75032 to 0936172 Compare February 27, 2026 08:49
@2heal1 2heal1 merged commit 203c950 into main Feb 27, 2026
12 of 13 checks passed
@2heal1 2heal1 deleted the fix/array-share-scope branch February 27, 2026 08:55
@2heal1 2heal1 mentioned this pull request Mar 5, 2026
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.

2 participants