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

0.3.0 • Public • Published

Vite Typescript Plugin

npm version npm href

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

Package Sidebar

Install

npm i vite-typescript-plugin

Weekly Downloads

21

Version

0.3.0

License

MIT

Unpacked Size

41.1 kB

Total Files

41

Last publish

Collaborators

  • generalsimus