-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
refactor: change order of params for Server #3273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3273 +/- ##
=======================================
Coverage 95.39% 95.40%
=======================================
Files 34 34
Lines 1239 1241 +2
Branches 353 354 +1
=======================================
+ Hits 1182 1184 +2
Misses 51 51
Partials 6 6
Continue to review full report at Codecov.
|
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!! 🌟
Hey! No need to thank as such but appreciated 😄. |
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.
Oh, can we test multi compiler mode too or we already have tests?
Nothing is changed in this PR for multi-compilers though, will add similar test for multi-compiler too anyway. EDIT: Done 👍🏽 |
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.
LGTM
Thanks |
Now we can continue development dev server as plugin and don't worry about breaking change for v4 |
For Bugs and Features; did you add new tests?
Will update tests accordingly
Motivation / Use-Case
We are moving to plugin interface for the server. The ideal signature for that would be
constructor(options={})
but we need compiler in params as well for backward compatibility. For that reason, this PR aims to change the order of params so that plugin implementation can ignore compiler param.Breaking Changes
Yes, we will need to fix this in serve package after patch release here
Additional Info
https://github.com/webpack/webpack-dev-server/pull/3251/files#r629851714