Unverified Commit 84cb85d3 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Alternate bundler: Add `react-refresh` as a dependency of plugin (#77142)

`react-refresh` is a peer dependency of `@rspack/plugin-react-refresh`.
It’s marked optional but is required when it’s loaded otherwise
requiring throws.

Test Plan: In a test project, `require('@rspack/plugin-react-refresh')`
parent 64fc01d0
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
"types": "index.d.ts", "types": "index.d.ts",
"dependencies": { "dependencies": {
"@rspack/core": "npm:@rspack-canary/core@1.2.9-canary-c009cfc1-20250313053424", "@rspack/core": "npm:@rspack-canary/core@1.2.9-canary-c009cfc1-20250313053424",
"@rspack/plugin-react-refresh": "1.0.1" "@rspack/plugin-react-refresh": "1.0.1",
"react-refresh": "0.12.0"
} }
} }
...@@ -1651,6 +1651,9 @@ importers: ...@@ -1651,6 +1651,9 @@ importers:
'@rspack/plugin-react-refresh': '@rspack/plugin-react-refresh':
specifier: 1.0.1 specifier: 1.0.1
version: 1.0.1(react-refresh@0.12.0) version: 1.0.1(react-refresh@0.12.0)
react-refresh:
specifier: 0.12.0
version: 0.12.0
packages/next-plugin-storybook: {} packages/next-plugin-storybook: {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment