vite-plugin-typescript-vue-checker
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

A vite plugin to detect *.ts | *.vue typescript error

this plugin based on fork-ts-checker-webpack-plugin (https://github.com/TypeStrong/fork-ts-checker-webpack-plugin).

  • Support Vue Single File Component
  • Support script setup
  • Prompt errors in Vite HMR overlay and terminal console
# npm
npm install --save-dev vite-plugin-typescript-vue-checker

# yarn
yarn add --dev vite-plugin-typescript-vue-checker

example in vite.config.ts

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { vueAndTsChecker }  from 'vite-plugin-typescript-vue-checker';

export default defineConfig({
    plugins: [vue(), vueAndTsChecker()]
})

License

MIT License

Package Sidebar

Install

npm i vite-plugin-typescript-vue-checker

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

95.9 kB

Total Files

24

Last publish

Collaborators

  • jumiray