UNPKG

knip

Version:

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

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