What problem does this feature solve?
Can we add @rspack/core to the peer dependencies of html-webpack-plugin and react-refresh-webpack-plugin (and more popular webpack plugins), then make webpack as an optional dependency?
The benifits:
- Users do not need to install webpack as a dependency.
- No peer dependency missing warning.
What does the proposed API of configuration look like?
{
"peerDependencies": {
"@rspack/core": ">=0.3.0",
"webpack": ">=4.43.0 <6.0.0",
},
"peerDependenciesMeta": {
"webpack": {
"optional": true
},
"@rspack/core": {
"optional": true
}
},
}
What problem does this feature solve?
Can we add
@rspack/coreto the peer dependencies of html-webpack-plugin and react-refresh-webpack-plugin (and more popular webpack plugins), then makewebpackas an optional dependency?The benifits:
What does the proposed API of configuration look like?