UNPKG

vite-plugin-sass-dts

Version:

A plugin that automatically creates a type file when using the css module type-safely.

25 lines (21 loc) 640 B
import { Plugin as Plugin$1 } from 'vite'; type PluginOptions = { enabledMode?: ('development' | 'production')[]; global?: { generate: boolean; outputFilePath: string; }; typeName?: ContentReplacer; exportName?: ContentReplacer; esmExport?: boolean; outputDir?: string; sourceDir?: string; excludePath?: string | RegExp | Array<string | RegExp>; prettierFilePath?: string; useNamedExport?: boolean; }; type ContentReplacer = { replacement: string | ((fileName: string) => string); }; declare function Plugin(option?: PluginOptions): Plugin$1; export { Plugin as default };