rollup-plugin-fork-ts-checker
The project is currently in alpha phase.
fork-ts-checker-webpack-plugin is a great Webpack plugin that saves time from waiting for type checking. This repo heavily relies on fork-ts-checker-webpack-plugin, core logic of type checking is directly imported from it, with a adapation for Rollup.
Usage
Install with NPM
npm i fork-ts-checker-webpack-plugin -D
or with Yarn
yarn add fork-ts-checker-webpack-plugin -D
The original idea for this plugin was to work with rollup-plugin-typescript2. It also could work with any none type checking TypeScript compile tool.
Here's a simple Rollup config example work with rpt2:
const rpt2 = const ftc = default input: 'src/index.ts' plugins: output: file: 'bundle.js' format: 'cjs'
Caveat
Most options are completely same as fork-ts-checker-webpack-plugin. But some functionality can not be supported.
- Webpack related configurations (e.g. ts-loader, happypack).
- vue (could be supported, still WIP).
License
MIT