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 compressibility of modules while retaining portability by dmichon-msft · Pull Request #20287 · webpack/webpack

Conversation

@dmichon-msft

@dmichon-msft dmichon-msft commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Summary
Addresses an issue raised by @sokra in #19184 with respect to sorting by final module id impairing compressibility of output code.

What kind of change does this PR introduce?

Fix for compressibility of output code while retaining portability of sort order.

Did you add tests for your changes?

Updated the existing test for default module sort order.

Does this PR introduce a breaking change?

Not unless code has taken a dependency on the rendered order of modules within a chunk, which nothing should be doing without itself controlling the rendered order.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

For most customers, this will look equivalent to reverting #19184. The only time differences will appear is when comparing output across environments (Windows vs. Linux, different installation folders on Windows, etc.) for the same input code.

Sorry, something went wrong.

Uh oh!

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

hai-x reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dmichon-msft
Fix compressibility of sorted module order
5d9fa33
@changeset-bot

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

Uh oh!

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

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3ad4fa6

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.

@codspeed

codspeed Bot commented Jan 6, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 72 untouched benchmarks


Comparing dmichon-msft:stable-module-sort (3ad4fa6) with main (d2a124d)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (081104f) during the generation of this report, so d2a124d was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

All reactions

Sorry, something went wrong.

Uh oh!

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

@dmichon-msft
Update other snapshots
3885483
dmichon-msft
dmichon-msft commented Jan 7, 2026
View reviewed changes
Comment thread test/__snapshots__/ConfigCacheTestCases.longtest.js.snap
Comment on lines -17349 to -17360
exports[`ConfigCacheTestCases css large exported tests should allow to create css modules: dev 1`] = `
Object {
"placeholder": "my-app-tailwind_module_css-placeholder-gray-700",
}
`;

exports[`ConfigCacheTestCases css large exported tests should allow to create css modules: prod 1`] = `
Object {
"placeholder": "Xk90he",
}
`;

@dmichon-msft dmichon-msft Jan 7, 2026

Copy link
Copy Markdown
Contributor 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.

Unexpected deletion

Sorry, something went wrong.

Uh oh!

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

All reactions
@hai-x

hai-x commented Jan 9, 2026

Copy link
Copy Markdown
Member

Hi, do you need any help?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dmichon-msft
Fix snapshots
105372a
@dmichon-msft

dmichon-msft commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

@hai-x , mostly just got sidetracked, and was having some issues getting my environments to properly update the snapshot tests (they were exiting with OoM due to the low spec on the agent). I think this should be correct now? If there are still other issues, then yes, I might need some assistance getting this over.

hai-x reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@hai-x
fix
96344c0
@hai-x

hai-x commented Jan 10, 2026

Copy link
Copy Markdown
Member

Fixed the lint problem.

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 12, 2026
View reviewed changes
@alexander-akait
Create soft-tools-appear.md
3ad4fa6
@alexander-akait
alexander-akait merged commit 03440e2 into webpack:main Jan 12, 2026
@github-actions

github-actions Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

This PR is packaged and the instant preview is available (03440e2).

Install it locally:

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

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot mentioned this pull request Jan 12, 2026
chore(release): new release #20256
Merged
@dmichon-msft
dmichon-msft deleted the stable-module-sort branch January 12, 2026 21:59
@hai-x hai-x mentioned this pull request Mar 11, 2026
fix(core): use module_id to sort module_code web-infra-dev/rspack#10516
Merged
2 tasks
@LingyuCoder LingyuCoder mentioned this pull request Oct 16, 2026
fix: stabilize module rendering order across platforms web-infra-dev/rspack#16100
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.

Uh oh!

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

3 participants

@dmichon-msft @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.