GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — fix: handle middleware teardown in plugin mode by bjohansebas · Pull Request #5703 · webpack/webpack-dev-server Conversation
Member
…n compiler close 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
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #5703 +/- ## ========================================== + Coverage 82.90% 89.38% +6.47% ========================================== Files 13 13 Lines 6126 6169 +43 ========================================== + Hits 5079 5514 +435 + Misses 1047 655 -392 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This PR fixes teardown behavior when webpack-dev-server is used in plugin mode (server.apply(compiler)), ensuring compiler.close() does not surface an error due to dev-middleware shutdown semantics in that mode.
Changes:
webpack-dev-middleware’s close() during Server.stop() when running in plugin mode (this.isPlugin).compiler.close() completes without returning an error in plugin mode.Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
test/e2e/api-plugin.test.js |
Adds a regression test validating compiler.close() returns no error in plugin mode. |
lib/Server.js |
Avoids calling middleware.close() during teardown when Server is operating as a plugin (apply() mode). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.