UNPKG

knip

Version:

Find unused files, dependencies and exports in your TypeScript and JavaScript projects

13 lines (12 loc) 389 B
import type { Configuration } from 'webpack'; type Mode = 'none' | 'development' | 'production'; export type Env = { production: boolean; mode: Mode; }; export type Argv = { mode: Mode; }; type Configurations = Configuration | Configuration[]; export type WebpackConfig = Configurations | ((env: Env, argv: Argv) => Configurations) | (() => Promise<Configuration>); export {};