Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Issue cleared: #18119 (dynamic remote-entry loading with promise remotes where __webpack_require__.l could be missing).#20531

Open
Santhoshkumargontla wants to merge 1 commit intowebpack:mainfrom
Santhoshkumargontla:fix/issue-18119
Open

Issue cleared: #18119 (dynamic remote-entry loading with promise remotes where __webpack_require__.l could be missing).#20531
Santhoshkumargontla wants to merge 1 commit intowebpack:mainfrom
Santhoshkumargontla:fix/issue-18119

Conversation

@Santhoshkumargontla
Copy link

Fixes #18119.
Summary
This PR fixes a Module Federation runtime gap for promise-based remotes that reference __webpack_require__.l to dynamically load remote entries.

Previously, externalType: "promise" did not always add the runtime requirement for loadScript, so __webpack_require__.l could be undefined unless users forced runtime generation with workarounds (for example, importing a fake module).

This change updates ExternalModule to detect __webpack_require__.l usage in promise externals and include the RuntimeGlobals.loadScript runtime requirement automatically.

What kind of change does this PR introduce?

  • fix
  • test

Did you add tests for your changes?
Yes. Added a regression config case:

  • test/configCases/container/issue-18119/webpack.config.js
  • test/configCases/container/issue-18119/index.js

The test validates that promise remotes can reference __webpack_require__.l and load successfully.

Does this PR introduce a breaking change?
No.

If relevant, what needs to be documented once your changes are merged or what have you already documented?**
No documentation changes required.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 24, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: Santhoshkumargontla / name: Santhoshkumargontla (0e9f12a)

@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2026

⚠️ No Changeset found

Latest commit: 0e9f12a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@aryanraj45
Copy link
Contributor

@Santhoshkumargontla please sign CLA for making contribution

@Santhoshkumargontla
Copy link
Author

CLA is now signed and EasyCLA check is passing.

@Santhoshkumargontla
Copy link
Author

Could a maintainer please approve workflows so CI can run for this PR?

Copy link
Author

@Santhoshkumargontla Santhoshkumargontla left a comment

Choose a reason for hiding this comment

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

Could a maintainer please approve workflows so CI can run for this PR?

@alexander-akait
Copy link
Member

@Santhoshkumargontla Is it AI generated code? Please describe using your own words what do you change and why

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fetching remote-entry files dynamically and support of experiments.outputModule

3 participants