feat: add support for plugin usage with dedicated wrappers and logging#2272
Merged
alexander-akait merged 15 commits intonextfrom Mar 11, 2026
Merged
feat: add support for plugin usage with dedicated wrappers and logging#2272alexander-akait merged 15 commits intonextfrom
alexander-akait merged 15 commits intonextfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #2272 +/- ##
==========================================
+ Coverage 96.92% 96.97% +0.04%
==========================================
Files 13 13
Lines 911 926 +15
Branches 266 271 +5
==========================================
+ Hits 883 898 +15
Misses 28 28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
@bjohansebas I fixed the logic, WIP on tests, the main idea of a plugin support is using this code inside plugin, i.e. when you run const webpack = webpack.watch((err, stats) => {
if (err) {
throw err;
}
console.log(stats.toString());
})callback will call on the each compilation and so stats will be outputed by callback in |
Member
|
I think we can avoid extra wrappers in favor the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
fixes #979
I still need to add tests. This is so that when webpack-dev-server is used as a plugin, we don’t flood the logs and it respects the webpack logger option.
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