UNPKG

@eaglesong/task-panorama

Version:
30 lines 1.25 kB
import webpack from 'webpack'; export interface Manifest { name: string; content: Record<string, { id: string; buildMeta: any; }>; } export interface Cache { time: number; isWatching: boolean; versions: Record<string, string>; manifest: Manifest; } export interface Common { modules: string[]; lifetime: number | 'forever' | 'compiler'; preserveRealm: boolean; } export declare function loadCache(cacheFilePath: string, commons: string[]): Promise<Record<string, Cache>>; export declare const resolveVersions: (context: string, modules: string[]) => Promise<{ [x: string]: string; [x: number]: string; }>; export declare function getDirtyCommons(isWatching: boolean, context: string, common: Record<string, Common>, cache: Record<string, Cache>): Promise<string[]>; export declare function makeConfigs(webpackContext: string, isWatching: boolean): [webpack.Configuration, webpack.Configuration]; export declare function runCompiler(isWatching: boolean, context: string, outputPath: string | undefined, commons: Record<string, Common>, [sameRealmCfg, otherRealmCfg]: [webpack.Configuration, webpack.Configuration]): Promise<{ [x: string]: Cache; }>; //# sourceMappingURL=cache.d.ts.map