一覧へ戻る
startracex/rollup-plugin-oxc(新しいタブで開きます)
主要言語: TypeScript
A Rollup plugin
- star 数
- 0
- watcher 数
- 0
- fork 数
- 0
- issue 数
- 1
- 最終更新
- 2026/03/30
主要言語: 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 */ }, };