@vitejs/plugin-react-oxc
0.4.3 · 12 Nov 2025MIT22.1k / weekRepositoryHomepagenpmAtom feed
10 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.4.x · latest line
0.4.3
12 Nov 2025rolldown-vitewill removeoptimizeDeps.rollupOptionsin favor ofoptimizeDeps.rolldownOptionssoon. This plugin now usesoptimizeDeps.rolldownOptionsto support newerrolldown-vite. Please updaterolldown-viteto the latest version if you are using an older version.0.4.2
17 Sep 20250.4.1
19 Aug 2025optimizeDeps.rollupOptions.jsxis going to be deprecated in favor ofoptimizeDeps.rollupOptions.transform.jsx.0.4.0
7 Aug 2025(Same content as v0.4.0-beta.0 github.com/vitejs/vite-plugin-react/releases/ed…)
(Same content as v0.4.0-beta.0 github.com/vitejs/vite-plugin-react/releases/ed…)
Deprecate this plugin
The changes of this plugin is now included in
@vitejs/plugin-react. Please use@vitejs/plugin-reactinstead.Allow processing files in
node_modulesThe default value of
excludeoptions is now[/\/node_modules\//]to allow processing files innode_modulesdirectory. It was previously `` and files innode_moduleswas always excluded regardless of the value ofexcludeoption.Require Node 20.19+, 22.12+
This plugin now requires Node 20.19+ or 22.12+.
- 0.3.x
0.3.0
18 Jul 2025HMR now works for compound components like this:
Add HMR support for compound components
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
Plugininstead ofPluginOptionThe return type has changed from
react(): PluginOptionto more specialized typereact(): 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' }))- 0.2.x
0.2.3
16 Jun 2025This fixes "
$RefreshReg$is not defined" error when running Vitest with the plugin.0.2.2
10 Jun 2025React plugins are compatible with Vite 7, this removes the warning when testing the beta.
0.2.1
3 Jun 2025This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
0.2.0
23 May 2025Added
filterso that it is more performant when running this plugin with rolldown-powered version of Vite.- 0.1.x
0.1.1
10 Apr 2025
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.