Skip to content

Releases: vitejs/vite-plugin-react

[email protected]

03 Jun 03:27
[email protected]
8ce7183

Choose a tag to compare

Add explicit semicolon in preambleCode #485

This fixes an edge case when using HTML minifiers that strips line breaks aggressively.

[email protected]

03 Jun 03:27
[email protected]
c7124fb

Choose a tag to compare

Add explicit semicolon in preambleCode #485

This fixes an edge case when using HTML minifiers that strips line breaks aggressively.

[email protected]

23 May 00:34
[email protected]
476e705

Choose a tag to compare

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 for JSX files with hooks #480

This removes the HMR warning for hooks with JSX.

[email protected]

23 May 00:34
[email protected]
dcadcfc

Choose a tag to compare

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]

23 May 00:34
[email protected]
2e69ea4

Choose a tag to compare

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 for JSX files with hooks #480

This removes the HMR warning for hooks with JSX.

[email protected]

19 Apr 12:11

Choose a tag to compare

Fix type issue when using moduleResolution: "node" in tsconfig #462

[email protected]

15 Apr 09:22
[email protected]
8beda4f

Choose a tag to compare

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]

15 Apr 09:22
[email protected]
4a94448

Choose a tag to compare

Make compatible with rolldown-vite

This plugin is now compatible with rolldown-powered version of Vite.

[email protected]

15 Apr 04:02
[email protected]
c197fd9

Choose a tag to compare

[email protected] Pre-release
Pre-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' })],
})

[email protected]

15 Apr 04:06
[email protected]
ae2ed7b

Choose a tag to compare

[email protected] Pre-release
Pre-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' })],
})