-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
fix: add missing optional peer dependency webpack-cli #11189
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
|
|
|
For maintainers only:
|
|
|
|
Is it allowed to use |
|
Yes, Yarn 2 and potentially pnpm will treat it as if you also specified Yarn 1 and probably npm will just ignore it |
|
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
|
@sokra we use same for webpack-dev-server, https://github.com/webpack/webpack-dev-server/blob/master/package.json#L119 /cc @arcanis it is valid, right? |
|
Yep! 👍 |
|
Thanks |
Webpack tries to require
webpack-cliwithout declaring it as a optional peer dependency which causes it to not get access to it under Yarn PnPFixes half of yarnpkg/berry#1452
What kind of change does this PR introduce?
bugfix
Did you add tests for your changes?
No
Does this PR introduce a breaking change?
No
What needs to be documented once your changes are merged?
N/A