Skip to content

test: esm runner only link deps when the module is unlinked - #20350

Merged
alexander-akait merged 3 commits into
mainfrom
esm-test-runner
Jan 26, 2026
Merged

alexander-akait merged 3 commits into
mainfrom
esm-test-runner

Conversation

@hai-x

@hai-x hai-x commented Jan 24, 2026 •

Copy link
Copy Markdown
Member

Summary

What kind of change does this PR introduce?

Refactor test runner.

Fixes a module linking error in https://github.com/webpack/webpack/actions/runs/21312964097/job/61351839265?pr=20346#step:7:73. The issue occurs when the same module is dynamic imported multiple times by different importers. So here we should ensure modules link their dependencies only once.

Did you add tests for your changes?

No

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

@changeset-bot

changeset-bot Bot commented Jan 24, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0fd75ea

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

@github-actions

github-actions Bot commented Jan 24, 2026 •

Copy link
Copy Markdown
Contributor

This PR is packaged and the instant preview is available (22e1787).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@22e1787
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@22e1787
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@22e1787

@hai-x
hai-x marked this pull request as ready for review January 24, 2026 09:41
@codspeed

codspeed Bot commented Jan 24, 2026 •

Copy link
Copy Markdown

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing esm-test-runner (0fd75ea) with main (f2d4017)

Summary

✅ 72 untouched benchmarks

@alexander-akait

Copy link
Copy Markdown
Member

Let's fix tests 😄

@hai-x
hai-x force-pushed the esm-test-runner branch 4 times, most recently from 4388058 to f48d47b Compare January 24, 2026 18:17
@hai-x
hai-x force-pushed the esm-test-runner branch 3 times, most recently from 838620f to 14f9544 Compare January 24, 2026 19:38
@alexander-akait
alexander-akait merged commit 22e1787 into main Jan 26, 2026
51 of 52 checks passed
@alexander-akait
alexander-akait deleted the esm-test-runner branch January 26, 2026 13:02
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.

2 participants