Skip to content

fix(retry-plugin): fix ESM remote entry retry#4877

Open
gioboa wants to merge 7 commits into
module-federation:mainfrom
gioboa:fix/retry-esm
Open

fix(retry-plugin): fix ESM remote entry retry#4877
gioboa wants to merge 7 commits into
module-federation:mainfrom
gioboa:fix/retry-esm

Conversation

@gioboa

@gioboa gioboa commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes ESM/module remote entry retry handling by wrapping native dynamic import load failures as RUNTIME_008 and applying retry-plugin URL rewriting through getEntryUrl.

Related Issue

retry plugin is not working with type module.

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.

@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3b683f9

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

This PR includes changesets to release 47 packages
Name Type
@module-federation/runtime-core Patch
@module-federation/nextjs-mf Patch
@module-federation/runtime Patch
@module-federation/bridge-react Patch
@module-federation/devtools Patch
@module-federation/dts-plugin Patch
@module-federation/esbuild Patch
@module-federation/metro Patch
@module-federation/modern-js-v3 Patch
@module-federation/modern-js Patch
@module-federation/node Patch
@module-federation/observability-plugin Patch
@module-federation/playground Patch
@module-federation/retry-plugin Patch
@module-federation/runtime-tools Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/bridge-vue3 Patch
website-new 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
@module-federation/rsbuild-plugin Patch
node-dynamic-remote-new-version Patch
node-dynamic-remote Patch
@module-federation/enhanced Patch
@module-federation/rspack Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/rspress-plugin Patch
remote5 Patch
remote6 Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider 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/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

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

Copy link
Copy Markdown

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: c8d356413f

ℹ️ 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".

Comment thread packages/runtime-core/src/utils/load.ts Outdated
@gioboa gioboa changed the title fix: fix ESM remote entry retry fix(rsbuild-plugin): fix ESM remote entry retry Jul 8, 2026
@gioboa gioboa changed the title fix(rsbuild-plugin): fix ESM remote entry retry fix(retry-plugin): fix ESM remote entry retry Jul 8, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

@module-federation/devtools

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

@module-federation/cli

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

create-module-federation

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

@module-federation/dts-plugin

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

@module-federation/enhanced

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

@module-federation/error-codes

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

@module-federation/esbuild

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

@module-federation/managers

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

@module-federation/manifest

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

@module-federation/metro

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

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

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

@module-federation/metro-plugin-rnef

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

@module-federation/metro-plugin-rock

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

@module-federation/modern-js

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

@module-federation/modern-js-v3

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

@module-federation/native-federation-tests

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

@module-federation/native-federation-typescript

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

@module-federation/nextjs-mf

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

@module-federation/node

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

@module-federation/observability-plugin

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

@module-federation/playground

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

@module-federation/retry-plugin

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

@module-federation/rsbuild-plugin

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

@module-federation/rspack

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

@module-federation/rspress-plugin

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

@module-federation/runtime

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

@module-federation/runtime-core

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

@module-federation/runtime-tools

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

@module-federation/sdk

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

@module-federation/storybook-addon

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

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

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

@module-federation/treeshake-frontend

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

@module-federation/treeshake-server

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

@module-federation/typescript

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

@module-federation/utilities

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

@module-federation/webpack-bundler-runtime

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

@module-federation/bridge-react

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

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

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

@module-federation/bridge-shared

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

@module-federation/bridge-vue3

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

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

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

commit: 3b683f9

@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Report

11 package(s) changed, 31 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/bridge-react 374.9 kB +1.9 kB (+0.5%) 1.3 kB -1 B (-0.1%)
@module-federation/bridge-vue3 178.4 kB +1.0 kB (+0.6%) 25.9 kB +185 B (+0.7%)
@module-federation/playground 29.09 MB +9.0 kB (+0.0%) 52.1 kB +192 B (+0.4%)
@module-federation/runtime 20.0 kB +13 B (+0.1%) 715 B no change
@module-federation/runtime-core 289.5 kB +1.8 kB (+0.6%) 477 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/bridge-react 18.2 kB +138 B (+0.7%) 19.0 kB no change
@module-federation/bridge-vue3 19.0 kB +137 B (+0.7%) 19.2 kB -1 B (-0.0%)
@module-federation/cli 2.3 kB -4 B (-0.2%) 2.4 kB -31 B (-1.3%)
@module-federation/core 1.0 kB -4 B (-0.4%) 1.0 kB -31 B (-2.9%)
@module-federation/devtools 30.3 kB -1 B (-0.0%) 30.3 kB -23 B (-0.1%)
@module-federation/enhanced 2.7 kB +4 B (+0.1%) 2.8 kB -42 B (-1.5%)
@module-federation/metro-plugin-rnc-cli 416 B +2 B (+0.5%) 435 B -25 B (-5.4%)
@module-federation/node 9.2 kB +3 B (+0.0%) 9.2 kB -29 B (-0.3%)
@module-federation/playground 48.0 kB +191 B (+0.4%) 48.0 kB +191 B (+0.4%)
@module-federation/runtime-core 15.2 kB +136 B (+0.9%) 14.8 kB no change

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 21.5 kB +132 B (+0.6%) 23.0 kB -17 B (-0.1%) +1.5 kB -149 B

Total dist (raw): 36.23 MB (+13.7 kB (+0.0%))
Total ESM gzip: 123.3 kB (+376 B (+0.3%))
Total web bundle (gzip): 253.5 kB (+602 B (+0.2%))
Total node bundle (gzip): 255.8 kB (+9 B (+0.0%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.7 kB (no change)
Tracked ./bundler node bundle (gzip): 4.7 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.

@Nsttt
Nsttt requested a review from 2heal1 July 14, 2026 08:39
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