Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

This module has moved and is now available at @rollup/plugin-typescript /https://github.com/rollup/plugins/blob/master/packages/typescript

License

NotificationsYou must be signed in to change notification settings

rollup/rollup-plugin-typescript

Repository files navigation

travis-cinpm-versionnpm-monthly-downloadsnpm-dependencies

Seamless integration between Rollup and Typescript.

Why?

Seerollup-plugin-babel.

Installation

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

Usage

// rollup.config.jsimporttypescriptfrom'rollup-plugin-typescript';exportdefault{entry:'./main.ts',plugins:[typescript()]}

The plugin loads anycompilerOptions from thetsconfig.json file by default. Passing options to the plugin directly overrides those options.

The following options are unique torollup-plugin-typescript:

  • options.include andoptions.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 fortranspiling the sources.

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

Issues

Emit-less types, see#28.

About

This module has moved and is now available at @rollup/plugin-typescript /https://github.com/rollup/plugins/blob/master/packages/typescript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors21


[8]ページ先頭

©2009-2025 Movatter.jp