diff --git a/packages/plugin-react/CHANGELOG.md b/packages/plugin-react/CHANGELOG.md index 5d57b0f4f..c84ee713f 100644 --- a/packages/plugin-react/CHANGELOG.md +++ b/packages/plugin-react/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +### Fix `reactRefreshHost` option on rolldown-vite ([#716](https://github.com/vitejs/vite-plugin-react/pull/716)) + ### Fix `RefreshRuntime` being injected twice for class components on rolldown-vite ([#708](https://github.com/vitejs/vite-plugin-react/pull/708)) ### Skip `babel-plugin-react-compiler` on non client environment ([689](https://github.com/vitejs/vite-plugin-react/pull/689)) diff --git a/packages/plugin-react/src/index.ts b/packages/plugin-react/src/index.ts index 3a4cdbc51..6700f5982 100644 --- a/packages/plugin-react/src/index.ts +++ b/packages/plugin-react/src/index.ts @@ -369,6 +369,7 @@ export default function viteReact(opts: Options = {}): Plugin[] { avoidSourceMapOption, '@vitejs/plugin-react', id, + opts.reactRefreshHost, ) return { code: newCode, map: null } },