rollup-plugin-fork-ts-checker

Runs typescript type checker and linter on separate process.
5,459 5
Install
npm install rollup-plugin-fork-ts-checker
Latest Version:0.0.6
Vue:2
License:MIT
Last Updated:Jan 12, 2021
Links: GitHub  ·  npm
Maintainer: fi3ework

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.

npm CI npm

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 = 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'
  }
}

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

Related Packages

fork-ts-checker-webpack-plugin-alt

Runs typescript type checker and linter on separate process.

1,330,698 0
@vizejs/unplugin

Experimental Vue SFC integrations for Rollup, Rolldown, Webpack, esbuild, and Ba...

89,545 909
rollup-plugin-vue-inline-svg

convert svg files to optimised vue components

21,881
rollup-plugin-svg-sprites

Rollup plugin for creating SVG sprites.

16,919
unplugin-element-plus

Import Element Plus on demand. Support Vite, Webpack, Vue CLI, Rollup and esbuil...

1,523,768 252

Version History

Version Released Vue License
0.0.6 ^2.6.11 MIT
0.0.5 ^2.6.11 MIT
0.0.4 ^2.6.11 MIT
0.0.3 ^2.6.11 MIT
0.0.2 MIT
Pre-releases (1)
Version Released License
0.0.1-alpha.1 MIT