Skip to content

[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Apr 04:06
· 357 commits to main since this release
[email protected]
ae2ed7b

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' })],
})