GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: use RuntimeKey instead of Runtime for export generation by hai-x · Pull Request #20346 · webpack/webpack

Conversation

@hai-x

@hai-x hai-x commented Jan 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

Fixes #20332.

What kind of change does this PR introduce?

In RuntimeSpecSet, we deduplicate runtimes by RuntimeKey, so no extra runtimes are stored here when it have same RuntimeKey.

However, when a concatenated module is generated in different chunks that share the same runtime value (equal in value but not the same reference), we still need to generate the export statement. To ensure it, we should use RuntimeKey to make sure that no runtimes are missing.

Did you add tests for your changes?

Yes

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

burck1 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@changeset-bot

changeset-bot Bot commented Jan 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 938944a

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

This PR includes changesets to release 1 package
Name Type
webpack 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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jan 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR is packaged and the instant preview is available (3a73621).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@3a73621
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@3a73621
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@3a73621
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codspeed

codspeed Bot commented Jan 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CodSpeed Performance Report

Merging this PR will improve performance by 27.82%

Comparing issue-20332 (938944a) with main (bf00b73)

Summary

⚡ 1 improved benchmark
✅ 71 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ benchmark "asset-modules-bytes", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 44.1 ms 34.5 ms +27.82%
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hai-x
hai-x force-pushed the issue-20332 branch from 75ef47a to 17eb426 Compare January 22, 2026 18:19
@burck1 burck1 mentioned this pull request Jan 23, 2026
Module Federation crashes with production configuration in Angular 21 #20332
Closed
alexander-akait
alexander-akait reviewed Jan 23, 2026
View reviewed changes
Comment thread lib/Module.js
* @property {Map<RuntimeSpec, Record<string, string>>=} exportsFinalNameByRuntime
* @property {Map<RuntimeSpec, string>=} exportsSourceByRuntime
* @property {Map<string, Record<string, string>>=} exportsFinalNameByRuntime
* @property {Map<string, string>=} exportsSourceByRuntime

@alexander-akait alexander-akait Jan 23, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Is the expected change?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@hai-x hai-x Jan 24, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Yeah, getRuntimeKey return string.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alexander-akait reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
alexander-akait
alexander-akait reviewed Jan 23, 2026
View reviewed changes

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks good

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hai-x
hai-x force-pushed the issue-20332 branch from 664db74 to 899921b Compare January 24, 2026 09:43
@hai-x

hai-x commented Jan 24, 2026

Copy link
Copy Markdown
Member Author

Added the test. But we need to merge #20350 first to fix an issue in the ESM test runner.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hai-x
hai-x marked this pull request as ready for review January 24, 2026 09:45
@hai-x
hai-x force-pushed the issue-20332 branch from 34e08d4 to 39569b3 Compare January 24, 2026 18:32
@alexander-akait

alexander-akait commented Jan 26, 2026

Copy link
Copy Markdown
Member

@hai-x let's rebase 😄

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hai-x and others added 5 commits January 26, 2026 23:24
@hai-x
fix: use RuntimeKey instead of Runtime
20c62d4
@hai-x
typo
92e5f8e
@hai-x
lint
c4627b7
@hai-x
test
a2a7783
@hai-x
Create olive-pans-tell.md
510b9cc
@hai-x
hai-x force-pushed the issue-20332 branch from 39569b3 to 510b9cc Compare January 26, 2026 15:24
hai-x added 2 commits January 26, 2026 23:42
@hai-x
test
d9e4b08
@hai-x
fix
938944a
@hai-x

hai-x commented Jan 26, 2026

Copy link
Copy Markdown
Member Author

Added the test. But we need to merge #20350 first to fix an issue in the ESM test runner.

I just missed adding the key fix in #20350; it has now been included in this PR.

Also i update the lockfile. And now everything is done.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alexander-akait
alexander-akait approved these changes Jan 26, 2026
View reviewed changes
@alexander-akait
alexander-akait merged commit 3a73621 into main Jan 26, 2026
50 of 55 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait deleted the issue-20332 branch January 26, 2026 17:13
@github-actions github-actions Bot mentioned this pull request Jan 26, 2026
chore(release): new release #20256
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alexander-akait alexander-akait alexander-akait approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Module Federation crashes with production configuration in Angular 21

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@hai-x @alexander-akait
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.