github vitejs/vite-plugin-react plugin-react-swc@3.9.0-beta.3

latest releases: plugin-rsc@0.5.26, plugin-rsc@0.5.25, plugin-rsc@0.5.24...
pre-release12 months ago

Add reactRefreshHost option

Add reactRefreshHost option to set a React Fast Refresh runtime URL prefix.
This is useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application.
See full discussion here: module-federation/vite#183 (comment)

export default defineConfig({
  plugins: [react({ reactRefreshHost: 'http://localhost:3000' })],
})

Don't miss a new vite-plugin-react release

NewReleases is sending notifications on new releases.