The version 4.x optional dependency on html-webpack-plugin uses >=4.0.0 || ^4.0.0-beta.11 instead of ^4.0.0 || ^4.0.0-beta.11. This allows it to pull in v5, which expresses a peer-dependency on webpack v5; this is incompatible with html-webpack-plugin's peer-dependency on webpack v4 and causes a build warning:
warning "favicons-webpack-plugin > html-webpack-plugin@5.3.1" has incorrect peer dependency "webpack@^5.20.0".
Expected behaviour ☀️
favicons-webpack-plugin should only express dependencies on package versions it is compatible with.
Current behaviour 💣
The version 4.x optional dependency on
html-webpack-plugin
uses>=4.0.0 || ^4.0.0-beta.11
instead of^4.0.0 || ^4.0.0-beta.11
. This allows it to pull in v5, which expresses a peer-dependency onwebpack
v5; this is incompatible withhtml-webpack-plugin
's peer-dependency onwebpack
v4 and causes a build warning:Expected behaviour ☀️
favicons-webpack-plugin
should only express dependencies on package versions it is compatible with.Reproduction Example 👾
https://codesandbox.io/s/favicons-webpack-plugin-demo-forked-h28qm?file=/package.json
Environment 🖥