This package has been deprecated

Author message:

Package no longer maintained.

rollup-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

rollup-typescript

Build Status npm-version npm-dependencies

Seamless integration between Rollup and TypeScript.

Why?

Because the origin repository hasn’t been maintained for a while.

Installation

# with npm 
npm install --save-dev rollup-typescript typescript
# with yarn 
yarn add typescript rollup-typescript --dev

Usage

// rollup.config.js
import typescript from 'rollup-typescript';
 
export default {
  input: './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.

Package Sidebar

Install

npm i rollup-typescript

Weekly Downloads

22

Version

1.2.1

License

MIT

Unpacked Size

30.4 kB

Total Files

11

Last publish

Collaborators

  • proteria