vite-typescript-plugin
v0.3.0
Published
A Vite plugin for seamless integration between Vite and Typescript.
Downloads
34
Maintainers
Readme
Vite Typescript Plugin
vite.config
import { defineConfig } from 'vite'
import { createTsPlugin } from "vite-typescript-plugin"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
createTsPlugin({
name, // plugin name
compilerOptions, // ts.CompilerOptions
tsConfigPath // tsConfig file name
test, // file test regexp
transforms, // ts.CustomTransformers
})
],
})
License
MIT