A Vite plugin that spawns an external `tsc --watch` process alongside the Vite dev server, providing TypeScript type checking without interfering with Vite's own transpilation. Current version 0.1.1. Release cadence is low (sporadic). Key differentiator: unlike fork-ts-checker-webpack-plugin for webpack or vite-plugin-checker, this plugin strictly uses `tsc --watch` and deliberately avoids any bundler integration, giving a pure TypeScript checker experience. It utilizes the `configResolved` hook and is not compatible with other bundlers.
npm install vite-plugin-tscVerified import paths — ran on the pinned version, not inferred.
Shows minimal configuration to enable tsc --watch in Vite dev server, suppressing Vite's default logs.
Configure `tsc` via `tsconfig.json` or command-line flags passed to the plugin if supported (currently not).
Use `logLevel: 'silent'` as recommended, but be aware it silences Vite logs, not tsc output.
Ensure you are using Vite as the build tool. For other tools, consider fork-ts-checker-webpack-plugin or other alternatives.
No options are supported. Future versions may accept an options object.
Run `npm install -D vite-plugin-tsc` in your project directory.
Use `import tscPlugin from 'vite-plugin-tsc'` (default import) instead of `import { tscPlugin } from 'vite-plugin-tsc'`.Use `const tscPlugin = require('vite-plugin-tsc')` and then call `tscPlugin()`.Install `@types/node` if needed, or add `vite-plugin-tsc` to `types` in tsconfig.json.