Back to results
startracex/rollup-plugin-oxc(opens in a new tab)
Language: TypeScript
A Rollup plugin
- stars
- 0
- watchers
- 0
- forks
- 0
- open issues
- 1
- Last updated
- 03/30/2026
Language: TypeScript
A Rollup plugin
A Rollup plugin to resolve, transform, minify TypeScript and generate type declarations with oxc.
import oxc from "rollup-plugin-oxc"; export default { input: "src/index.ts", plugins: [ oxc({ minify: true, // preset `oxc-minify` option, pass an object for more options resolve: { // `oxc-resolver` options }, transform: { // `oxc-transform` options, overrides tsconfigCompilerOptions migration }, tsconfig: "tsconfig.json", // default, pass string path or object options to migrate }), ], output: [ { dir: ".", format: "esm", sourcemap: true, }, ], };
These Rollup plugins can be replaced.
@rollup/plugin-node-resolve@rollup/plugin-typescript@rollup/plugin-terserimport nodeResolve from "@rollup/plugin-typescript"; import typescript from "@rollup/plugin-typescript"; import terser from "@rollup/plugin-terser"; export default { plugins: [nodeResolve(), typescript(), terser()], };
import oxc from "rollup-plugin-oxc"; export default { plugins: [oxc()], };
In Rolldown, this plugin can be removed.
export default { input: "src/index.ts", output: [ { dir: ".", format: "esm", sourcemap: true, minify: true, }, ], resolve: { /* resolve options */ }, transform: { /* transform options */ }, };