A Rollup plugin that delegates TypeScript transpilation to one of esbuild, swc, or sucrase for faster builds. Current stable version is 3.0.0, requiring Rollup ≥4.0.0 and Node ≥24.0.0. It provides zero-config operation via tsconfig.json, supports tsconfig extends, paths, baseUrl, rootDirs, and moduleSuffixes. Unlike @rollup/plugin-typescript or rollup-plugin-esbuild, it offers a choice of transpiler while maintaining full TypeScript-like module resolution. The plugin is ESM-only and does not perform type checking or emit declarations.
npm install rollup-plugin-fast-typescriptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Rollup configuration using fastTypescript with esbuild transpiler and nodeResolve.
Upgrade Node.js to 24.0.0 or later.
Use import syntax or dynamic import(). Switch to ESM configuration file (rollup.config.mjs).
Upgrade Rollup to 4.0.0 or later.
Run tsc --noEmit in parallel if type checking is needed.
Install one of: esbuild, @swc/core, or sucrase as a devDependency.
Rename rollup.config.js to rollup.config.mjs or add `"type": "module"` in package.json and use import.
Use `import fastTypescript from 'rollup-plugin-fast-typescript'` in an ESM context.
Install esbuild: npm install --save-dev esbuild (or @swc/core or sucrase).