ts-swc-rollup-plugin
    Preparing search index...

    ts-swc-rollup-plugin

    ts-swc-rollup-plugin

    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.

    API docs