Skip to content

feat: reuse an already active MultiWatching - #2371

Merged
alexander-akait merged 3 commits into
mainfrom
reuse-multiwatching
Jul 25, 2026
Merged

alexander-akait merged 3 commits into
mainfrom
reuse-multiwatching

Conversation

@bjohansebas

Copy link
Copy Markdown
Member

webpack 5.109 exposes the active MultiWatching on MultiCompiler.watching, resolving the old TODO here: when watching was already started (by webpack-cli or the user), the middleware now adopts that session instead of starting a second one — double watchers meant duplicate builds. Older webpack versions fall back to watch() as before.

Also updates the logging snapshots for webpack 5.109's runtime size changes (KiB/bytes boundary shifts in stats output).

Summary

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

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

Use of AI

webpack 5.109 exposes the active MultiWatching on MultiCompiler.watching,
resolving the old TODO here: when watching was already started (by
webpack-cli or the user), the middleware now adopts that session instead
of starting a second one — double watchers meant duplicate builds. Older
webpack versions fall back to watch() as before.

Also updates the logging snapshots for webpack 5.109's runtime size
changes (KiB/bytes boundary shifts in stats output).
@changeset-bot

changeset-bot Bot commented Jul 25, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 95d7b0e

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

This PR includes changesets to release 1 package
Name Type
webpack-dev-middleware Minor

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

@codecov

codecov Bot commented Jul 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.70%. Comparing base (2677607) to head (95d7b0e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2371      +/-   ##
==========================================
+ Coverage   92.60%   92.70%   +0.09%     
==========================================
  Files           3        3              
  Lines        1001     1001              
  Branches      311      311              
==========================================
+ Hits          927      928       +1     
+ Misses         66       65       -1     
  Partials        8        8              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bjohansebas
bjohansebas marked this pull request as ready for review July 25, 2026 04:52
Copilot AI review requested due to automatic review settings July 25, 2026 04:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@alexander-akait
alexander-akait merged commit 517723f into main Jul 25, 2026
18 checks passed
@alexander-akait
alexander-akait deleted the reuse-multiwatching branch July 25, 2026 10:56
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.

3 participants