Skip to content

Commit 6193292

Browse files
committed
Alternate bundler: Add react-refresh as a dependency of plugin
`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')`
1 parent cca78ec commit 6193292

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/next-plugin-rspack/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
},
88
"dependencies": {
99
"@rspack/core": "npm:@rspack-canary/[email protected]",
10-
"@rspack/plugin-react-refresh": "1.0.1"
10+
"@rspack/plugin-react-refresh": "1.0.1",
11+
"react-refresh": "0.12.0"
1112
}
1213
}

pnpm-lock.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)