·
358 commits
to main
since this release
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' })],
})