一覧へ戻る
kmalakoff/ts-swc-rollup-plugin(新しいタブで開きます)
主要言語: TypeScript
A rollup plugin for swc using ts-swc-transform
- star 数
- 0
- watcher 数
- 1
- fork 数
- 2
- issue 数
- 1
- 最終更新
- 2026/10/13
主要言語: TypeScript
A rollup plugin for swc using ts-swc-transform
A Rollup plugin that transforms TypeScript with SWC. It reads tsconfig.json by default and requires Node.js 16 or newer.
npm install --save-dev rollup ts-swc-rollup-plugin
// rollup.config.js import swc from 'ts-swc-rollup-plugin'; export default { input: 'src/index.ts', output: { dir: 'dist', format: 'esm' }, plugins: [swc()], };
Pass cwd to find a config in another directory, or pass the parsed config object as tsconfig. The plugin skips declaration files and files outside the configured TypeScript include/exclude patterns.