1.0.4 • Published 7 years ago

@alexlur/rollup-plugin-typescript v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

rollup-plugin-typescript

Build Status npm-version npm-dependencies

Seamless integration between Rollup and Typescript.

Why?

See rollup-plugin-babel.

Installation

# with npm
npm install --save-dev @alexlur/rollup-plugin-typescript typescript
# with yarn
yarn add typescript @alexlur/rollup-plugin-typescript --dev

Usage

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

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

  plugins: [
    typescript()
  ]
}

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

This plugin currently requires TypeScript > 2.0. For earlier versions, use version 0.8.1.

Issues

Emit-less types, see #28.

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

0.8.1

8 years ago