-
Notifications
You must be signed in to change notification settings - Fork 11
feat: add optional peer dependency for @rspack/core #96
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,11 @@ | |||||
|
|
||||||
| React refresh plugin for [Rspack](https://github.com/web-infra-dev/rspack). | ||||||
|
|
||||||
| ## Versions | ||||||
|
|
||||||
| - `2.x`: For Rspack v2. | ||||||
| - `1.x`: For Rspack v1, see [v1.x - README](https://github.com/rstackjs/rspack-dev-server/tree/v1.x#rspackdev-server) for usage guide. | ||||||
|
||||||
| - `1.x`: For Rspack v1, see [v1.x - README](https://github.com/rstackjs/rspack-dev-server/tree/v1.x#rspackdev-server) for usage guide. | |
| - `1.x`: For Rspack v1, see [v1.x - README](https://github.com/web-infra-dev/rspack/tree/v1.x/packages/rspack-plugin-react-refresh#readme) for usage guide. |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -44,8 +44,14 @@ | |||||||||||
| "typescript": "^6.0.2" | ||||||||||||
| }, | ||||||||||||
| "peerDependencies": { | ||||||||||||
| "@rspack/core": "^2.0.0-0", | ||||||||||||
| "react-refresh": ">=0.10.0 <1.0.0" | ||||||||||||
| }, | ||||||||||||
| "peerDependenciesMeta": { | ||||||||||||
| "@rspack/core": { | ||||||||||||
| "optional": true | ||||||||||||
| } | ||||||||||||
| }, | ||||||||||||
|
Comment on lines
+50
to
+54
|
||||||||||||
| "peerDependenciesMeta": { | |
| "@rspack/core": { | |
| "optional": true | |
| } | |
| }, |
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.
The new “Versions” section implies that users should install
2.xfor Rspack v2, but this package is currently version1.6.2(see package.json). Either update the mapping to reflect the actual published major versions, or bump the package to2.xas part of this change so the documentation stays accurate.