UNPKG

vite-plugin-tsconfig

Version:

Vite plugin that allows you to use alternate tsconfig files.

23 lines (20 loc) 615 B
import { LogLevel, Plugin } from 'vite'; declare const LogLevels: Record<LogLevel, number>; interface PluginOptions { /** * Set to 'info' for noisy information. * * Default: 'warn' */ logLevel?: LogLevel; /** * Name of the replacement tsconfig file to use */ filename: string; /** * Relative paths to packages that should also have their tsconfig.json files swapped. e.g. ['packages/foo', 'packages/bar'] */ workspaces?: string[]; } declare const factory: (options: PluginOptions) => Plugin; export { LogLevels, PluginOptions, factory as default };