0.1.1 • Published 4 years ago

vite-plugin-tsc v0.1.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

vite-plugin-tsc

A Vite plugin which spawns a tsc --watch process with Vite dev server.

npm install -D vite-plugin-tsc

How to use

// vite.config.js
import tscPlugin from "vite-plugin-tsc"

/** @type {import("vite").UserConfig} */
const config = {
  plugins: [tscPlugin()],

  // Not required, but recommended.
  logLevel: "silent",
}

export default config

And you will get like:

$ npx vite

[13:32:56] File change detected. Starting incremental compilation...

src/index.tsx:21:7 - error TS2322: Type 'boolean' is not assignable to type 'string'.

21 const message: string = false
         ~~~~~~~

[13:32:56] Found 1 error. Watching for file changes.

Why it is a Vite only plugin?

It uses a configResolved hook.

0.1.0

4 years ago

0.1.1

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago