Skip to content

Commit d431680

Browse files
authored
fix(react): respect reactRefreshHost option on rolldown-vite (#716)
1 parent c7bc716 commit d431680

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/plugin-react/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
### Fix `reactRefreshHost` option on rolldown-vite ([#716](https://github.com/vitejs/vite-plugin-react/pull/716))
6+
57
### Fix `RefreshRuntime` being injected twice for class components on rolldown-vite ([#708](https://github.com/vitejs/vite-plugin-react/pull/708))
68

79
### Skip `babel-plugin-react-compiler` on non client environment ([689](https://github.com/vitejs/vite-plugin-react/pull/689))

packages/plugin-react/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ export default function viteReact(opts: Options = {}): Plugin[] {
369369
avoidSourceMapOption,
370370
'@vitejs/plugin-react',
371371
id,
372+
opts.reactRefreshHost,
372373
)
373374
return { code: newCode, map: null }
374375
},

0 commit comments

Comments
 (0)