Packages

@vitejs/plugin-react-oxc

0.4.3 · 12 Nov 2025MIT22.1k / weekRepositoryHomepagenpmAtom feed

Your version

0.3.0

18 Jul 2025Where it was published

0.4.3 is the newest release of 0.3.x.

Release note

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 Plugin instead of PluginOption

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' }))

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.