fi3ework/rollup-plugin-fork-ts-checker(新しいタブで開きます)
主要言語: TypeScript
🚀 Rollup plugin that runs typescript type checker on a separate process.
- star 数
- 5
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2021/01/12
主要言語: TypeScript
🚀 Rollup plugin that runs typescript type checker on a separate process.
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.
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 = require('rollup-plugin-typescript2') const ftc = require('rollup-plugin-fork-ts-checker').default export default { input: 'src/index.ts', plugins: [ ftc({ // Plugin options, mostly same as fork-ts-checker-webpack-plugin. // See https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options // Some options can't be supported. See Caveat section for detail. }), rpt2({ // Disable type checking of compiler, leave it to ftc. check: false }) ], output: { file: 'bundle.js', format: 'cjs' } }
Most options are completely same as fork-ts-checker-webpack-plugin. But some functionality can not be supported.
MIT