Vite plugin that uses the Oxc (Rust-based) toolchain to transform, resolve, and minify JavaScript/TypeScript/JSX files. Version 0.0.4 (pre-release, rare releases). Key differentiator: extremely fast Rust-backed transforms vs Babel-based plugins. However, it is now deprecated; upstream development merged into @vitejs/plugin-react for rolldown-vite. Supports Vite 4-7. Ships TypeScript types.
npm install vite-plugin-oxcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Vite config with Oxc plugin enabling JSX transform and minification (disable Vite's built-in minifier).
Replace with `@vitejs/plugin-react` and configure for rolldown-vite as per the README.
Use dynamic import: const oxc = await import('vite-plugin-oxc') in CommonJS context.Set `sourcemap: true` explicitly to enable in production builds.
Disable Vite's minification (`build.minify: false`) when using oxc minify.
Use dynamic import: `const oxc = await import('vite-plugin-oxc')` or switch to ESM (type: module in package.json).Use `import oxc from 'vite-plugin-oxc'` then call `oxc()` to get the plugin object.
Install with `npm i -D vite-plugin-oxc` and ensure Node.js >=20.19 || >=22.12.