Zero-config Rollup plugin for TypeScript transpilation using the official tsc compiler (not Babel). Version 1.1.16 is current, with infrequent releases. Simple setup by passing a tsconfig object directly; no separate tsconfig.json required. Lightweight alternative to @rollup/plugin-typescript, offering more control over compiler options but less ecosystem integration.
npm install rollup-plugin-tscVerified import paths — ran on the pinned version, not inferred.
Minimal Rollup config with rollup-plugin-tsc transpiling TypeScript using inline tsconfig.
Add a separate step to run tsc --emitDeclarationOnly or use rollup-plugin-dts.
Install TypeScript: npm install --save-dev typescript
Ensure all .ts files are imported or use a separate tsc check for type errors.
Avoid setting rootDir/outDir in tsconfig; let Rollup handle output.
Pass tsconfig object to tsc() plugin call.
Use const { default: tsc } = require('rollup-plugin-tsc'); or switch to ESM import.