Seamless integration between Rollup and TypeScript.


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
3240Dec 3, 2019Nov 9, 2015Minified + gzip package size for @markis/rollup-plugin-typescript in KB



Build Status npm-version npm-monthly-downloads npm-dependencies

Seamless integration between Rollup and Typescript.


See rollup-plugin-babel.


npm install --save-dev rollup-plugin-typescript


// rollup.config.js
import typescript from 'rollup-plugin-typescript';

export default {
  entry: './main.ts',

  plugins: [

The plugin loads any compilerOptions from the tsconfig.json file by default. Passing options to the plugin directly overrides those options.

The following options are unique to rollup-plugin-typescript:

  • options.include and options.exclude (each a minimatch pattern, or array of minimatch patterns), which determine which files are transpiled by Typescript (all .ts and .tsx files by default).

  • tsconfig when set to false, ignores any options specified in the config file

  • typescript overrides TypeScript used for transpilation

TypeScript version

TypeScript 1.8.9 is used by default. Should your project require it, you can override the TypeScript version used for transpiling the sources.

  typescript: require('some-fork-of-typescript')


Emit-less types, see #28.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.