Releases: vitejs/vite-plugin-react
[email protected]
Add filter
for rolldown-vite #470
Added filter
so that it is more performant when running this plugin with rolldown-powered version of Vite.
Skip HMR preamble in Vitest browser mode #478
This was causing annoying Sourcemap for "/@react-refresh" points to missing source files
and is unnecessary in test mode.
Skip HMR for JSX files with hooks #480
This removes the HMR warning for hooks with JSX.
[email protected]
[email protected]
Fix type issue when using moduleResolution: "node"
in tsconfig #462
[email protected]
Make compatible with rolldown-vite
This plugin is now compatible with rolldown-powered version of Vite.
Note that currently the __source
property value position might be incorrect. This will be fixed in the near future.
[email protected]
Make compatible with rolldown-vite
This plugin is now compatible with rolldown-powered version of Vite.
[email protected]
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' })],
})
[email protected]
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' })],
})