UNPKG

@winner-fed/bundler-webpack

Version:

@winner-fed/bundler-webpack

34 lines (33 loc) 952 B
import { Configuration } from '../../compiled/webpack'; import { Env, IConfig } from '../types'; export interface IOpts { cwd: string; rootDir?: string; env: Env; entry: Record<string, string>; extraBabelPresets?: any[]; extraBabelPlugins?: any[]; extraBabelIncludes?: Array<string | RegExp>; extraBabelExcludes?: Array<string | RegExp>; extraEsbuildLoaderHandler?: any[]; babelPreset?: any; chainWebpack?: Function; modifyWebpackConfig?: Function; hash?: boolean; hmr?: boolean; staticPathPrefix?: string; userConfig: IConfig; analyze?: any; compression?: any; name?: string; cache?: { absNodeModulesPath?: string; buildDependencies?: string[]; cacheDirectory?: string; }; pkg?: Record<string, any>; disableCopy?: boolean; host?: string; port?: number; } export declare function getConfig(opts: IOpts): Promise<Configuration>;