@umijs/bundler-webpack
Version:
@umijs/bundler-webpack
23 lines (22 loc) • 691 B
TypeScript
import webpack from '../compiled/webpack';
import type { IOpts as IConfigOpts } from './config/config';
import { IConfig } from './types';
declare type IOpts = {
cwd: string;
rootDir?: string;
entry: Record<string, string>;
config: IConfig;
onBuildComplete?: Function;
babelPreset?: any;
chainWebpack?: Function;
modifyWebpackConfig?: Function;
beforeBabelPlugins?: any[];
beforeBabelPresets?: any[];
extraBabelPlugins?: any[];
extraBabelPresets?: any[];
clean?: boolean;
watch?: boolean;
disableCopy?: boolean;
} & Pick<IConfigOpts, 'cache' | 'pkg'>;
export declare function build(opts: IOpts): Promise<webpack.Stats>;
export {};