A Rollup plugin that combines resolving, transforming, minifying TypeScript, and generating type declarations using the oxc toolchain. Current stable version is 0.7.1, released monthly. It replaces multiple plugins like @rollup/plugin-node-resolve, @rollup/plugin-typescript, and @rollup/plugin-terser with a single unified plugin. Key differentiators include deep integration with oxc for high performance, support for tsconfig-based options, and compatibility with both Rollup and Rolldown. It is ESM-only and requires Rollup 4+.
npm install rollup-plugin-oxcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This shows a minimal Rollup configuration using rollup-plugin-oxc to bundle a TypeScript entry point with minification enabled.
Use ESM imports: `import oxc from 'rollup-plugin-oxc'`
Use default import: `import oxc from 'rollup-plugin-oxc'`
Use `import type { OxcOptions } from 'rollup-plugin-oxc'`Remove the other plugins and use only oxc().
Check changelog and migrate to new configuration shape if needed.
Change to `import oxc from 'rollup-plugin-oxc'`
Use `import oxc from 'rollup-plugin-oxc'`
Ensure you pass an object with valid options or omit the argument entirely.
Update Rollup: `npm install rollup@latest`