Package Exports
- rollup-plugin-typescript
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-plugin-typescript
Seamless integration between Rollup and Typescript.
Why?
See rollup-plugin-babel.
Installation
npm install --save-dev rollup-plugin-typescriptUsage
// 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.includeandoptions.exclude(each a minimatch pattern, or array of minimatch patterns), which determine which files are transpiled by Typescript (all.tsand.tsxfiles by default).tsconfigwhen set to false, ignores any options specified in the config filetypescriptoverrides 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({
typescript: require('some-fork-of-typescript')
})Issues
Emit-less types, see #28.
License
MIT