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 — refactor: avoid module variable conflict in __webpack_module__ API by xiaoxiaojx · Pull Request #20265 · webpack/webpack

Conversation

@xiaoxiaojx

@xiaoxiaojx xiaoxiaojx commented Dec 22, 2025

Copy link
Copy Markdown
Member

Summary
Fixes #20264

What kind of change does this PR introduce?
fix

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?
Nothing

Sorry, something went wrong.

Uh oh!

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

All reactions
@changeset-bot

changeset-bot Bot commented Dec 22, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 21da905

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 Dec 22, 2025 •
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 (d2a124d).

Install it locally:

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

Sorry, something went wrong.

Uh oh!

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

@codspeed

codspeed Bot commented Dec 22, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #20265 will not alter performance

Comparing issue-20264 (21da905) with main (f21d135)

Summary

✅ 72 untouched

All reactions

Sorry, something went wrong.

Uh oh!

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

@xiaoxiaojx xiaoxiaojx changed the title fix: rename moduleArgument when module is declared in current scope [WIP] fix: rename moduleArgument when module is declared in current scope Dec 23, 2025
alexander-akait
alexander-akait approved these changes Dec 23, 2025
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.

Thanks, is it ready to merge? Because there is WIP

Sorry, something went wrong.

Uh oh!

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

xiaoxiaojx reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@xiaoxiaojx
xiaoxiaojx force-pushed the issue-20264 branch from 1dadfa3 to 7fede11 Compare December 23, 2025 16:00
@xiaoxiaojx xiaoxiaojx closed this Dec 25, 2025
@xiaoxiaojx
xiaoxiaojx deleted the issue-20264 branch December 25, 2025 17:14
@xiaoxiaojx
xiaoxiaojx restored the issue-20264 branch December 25, 2025 17:14
@xiaoxiaojx xiaoxiaojx reopened this Dec 25, 2025
@xiaoxiaojx
xiaoxiaojx force-pushed the issue-20264 branch from 4f88419 to 8aeb611 Compare December 25, 2025 17:30
@xiaoxiaojx xiaoxiaojx changed the title [WIP] fix: rename moduleArgument when module is declared in current scope refactor: avoid module variable conflict in __webpack_module__ API Dec 25, 2025
@xiaoxiaojx
xiaoxiaojx force-pushed the issue-20264 branch 2 times, most recently from 067e176 to 33cedcc Compare December 25, 2025 17:51
@xiaoxiaojx
refactor: avoid module variable conflict in __webpack_module__ API
21da905
@xiaoxiaojx
xiaoxiaojx force-pushed the issue-20264 branch from 33cedcc to 21da905 Compare December 26, 2025 03:30
@xiaoxiaojx
xiaoxiaojx requested a review from alexander-akait December 26, 2025 03:34
alexander-akait
alexander-akait approved these changes Dec 26, 2025
View reviewed changes
@alexander-akait
alexander-akait merged commit d2a124d into main Dec 26, 2025
@alexander-akait
alexander-akait deleted the issue-20264 branch December 26, 2025 12:55
@github-actions github-actions Bot mentioned this pull request Dec 26, 2025
chore(release): new release #20256
Merged
@SyMind SyMind mentioned this pull request Feb 5, 2026
[Bug]: fix: port webpack fix for issue #20264 (PR #20265) web-infra-dev/rspack#12955
Closed
Copilot AI mentioned this pull request Feb 5, 2026
fix: port webpack fix for __webpack_module__ name collision web-infra-dev/rspack#12956
Merged
@pdrosatlassian pdrosatlassian mentioned this pull request Aug 24, 2026
AMD modules declaring module generate an invalid module.exports reference #21812
Closed
@lazerg lazerg mentioned this pull request Aug 24, 2026
fix(amd): assign the define result to the module argument #21813
Closed
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.

__webpack_module__ is rewritten to module, causing identifier collision with user-defined const module

Uh oh!

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

2 participants

@xiaoxiaojx @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.