UNPKG

469 BTypeScriptView Raw
1import * as webpack from 'webpack';
2export declare type ExcludeOption = string | RegExp;
3export interface Options {
4 exclude: ExcludeOption[];
5}
6export declare function findUnexpectedRemovals(compilation: webpack.compilation.Compilation, { exclude }: Options): any[];
7export declare class FailOnUnexpectedModuleShakingPlugin implements webpack.Plugin {
8 private options;
9 constructor(options?: Partial<Options>);
10 apply(compiler: webpack.Compiler): void;
11}