vite-plugin-deadcodes
Version:
Vite plugin to detect unused files. JS, TS, React, Vue projects are supported.
16 lines (15 loc) • 453 B
TypeScript
interface PluginRawOptions {
src?: string;
emit?: boolean | string;
excludes?: string[];
console?: boolean;
}
export default function vitePluginDeadcodes(rawOptions?: PluginRawOptions): {
name: string;
apply(config: any, { command }: any): boolean;
load(id: string): void;
transform(code: string, id: string): void;
moduleParsed(moduleInfo: any): void;
writeBundle(options: any, bundle: any): void;
};
export {};