Skip to content

Releases: vitejs/vite-plugin-react

plugin-rsc@0.4.13

24 Jul 23:18
Compare
Choose a tag to compare

Please refer to CHANGELOG.md for details.

plugin-react@4.7.0

18 Jul 03:32
plugin-react@4.7.0
8041706
Compare
Choose a tag to compare

Add HMR support for compound components (#518)

HMR now works for compound components like this:

const Root = () => <div>Accordion Root</div>
const Item = () => <div>Accordion Item</div>

export const Accordion = { Root, Item }

Return Plugin[] instead of PluginOption[] (#537)

The return type has changed from react(): PluginOption[] to more specialized type react(): Plugin[]. This allows for type-safe manipulation of plugins, for example:

// previously this causes type errors
react({ babel: { plugins: ['babel-plugin-react-compiler'] } })
  .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' }))

plugin-react-swc@3.11.0

18 Jul 03:33
plugin-react-swc@3.11.0
9e0c103
Compare
Choose a tag to compare

Add HMR support for compound components (#518)

HMR now works for compound components like this:

const Root = () => <div>Accordion Root</div>
const Item = () => <div>Accordion Item</div>

export const Accordion = { Root, Item }

Return Plugin[] instead of PluginOption[] (#537)

The return type has changed from react(): PluginOption[] to more specialized type react(): Plugin[]. This allows for type-safe manipulation of plugins, for example:

// previously this causes type errors
react()
  .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' }))

plugin-react-oxc@0.3.0

18 Jul 03:34
plugin-react-oxc@0.3.0
1b4e0f0
Compare
Choose a tag to compare

Add HMR support for compound components (#518)

HMR now works for compound components like this:

const Root = () => <div>Accordion Root</div>
const Item = () => <div>Accordion Item</div>

export const Accordion = { Root, Item }

Return Plugin[] instead of PluginOption[] (#537)

The return type has changed from react(): PluginOption[] to more specialized type react(): Plugin[]. This allows for type-safe manipulation of plugins, for example:

// previously this causes type errors
react()
  .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' }))

plugin-rsc@0.4.12

14 Jul 01:29
Compare
Choose a tag to compare

Please refer to CHANGELOG.md for details.

plugin-react@4.6.0

23 Jun 03:29
plugin-react@4.6.0
12bd153
Compare
Choose a tag to compare

Add raw Rolldown support

This plugin only worked with Vite. But now it can also be used with raw Rolldown. The main purpose for using this plugin with Rolldown is to use react compiler.

plugin-react-oxc@0.2.3

16 Jun 01:40
plugin-react-oxc@0.2.3
0704fc0
Compare
Choose a tag to compare

Disable refresh transform when server.hmr: false is set #502

This fixes "$RefreshReg$ is not defined" error when running Vitest with the plugin.

plugin-react@4.5.2

10 Jun 01:27
plugin-react@4.5.2
bfb45ad
Compare
Choose a tag to compare

Suggest @vitejs/plugin-react-oxc if rolldown-vite is detected #491

Emit a log which recommends @vitejs/plugin-react-oxc when rolldown-vite is detected to improve performance and use Oxc under the hood. The warning can be disabled by setting disableOxcRecommendation: false in the plugin options.

Use optimizeDeps.rollupOptions instead of optimizeDeps.esbuildOptions for rolldown-vite #489

This suppresses the warning about optimizeDeps.esbuildOptions being deprecated in rolldown-vite.

Add Vite 7-beta to peerDependencies range #497

React plugins are compatible with Vite 7, this removes the warning when testing the beta.

plugin-react-swc@3.10.2

10 Jun 01:28
plugin-react-swc@3.10.2
32d49ec
Compare
Choose a tag to compare

Suggest @vitejs/plugin-react-oxc if rolldown-vite is detected #491

Emit a log which recommends @vitejs/plugin-react-oxc when rolldown-vite is detected to improve performance and use Oxc under the hood. The warning can be disabled by setting disableOxcRecommendation: false in the plugin options.

Use optimizeDeps.rollupOptions instead of optimizeDeps.esbuildOptions for rolldown-vite #489

This suppresses the warning about optimizeDeps.esbuildOptions being deprecated in rolldown-vite.

Add Vite 7-beta to peerDependencies range #497

React plugins are compatible with Vite 7, this removes the warning when testing the beta.

plugin-react-oxc@0.2.2

10 Jun 01:28
plugin-react-oxc@0.2.2
8a91260
Compare
Choose a tag to compare

Add Vite 7-beta to peerDependencies range #497

React plugins are compatible with Vite 7, this removes the warning when testing the beta.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy