aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/rollup/dist/loadConfigFile.d.ts
blob: 4306b09cce14fcf4a9c0b88420601e0f503d2fc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import type { LogHandler, MergedRollupOptions, RollupLog } from './rollup';

export interface BatchWarnings {
	add: (warning: RollupLog) => void;
	readonly count: number;
	flush: () => void;
	log: LogHandler;
	readonly warningOccurred: boolean;
}

export type LoadConfigFile = typeof loadConfigFile;

export function loadConfigFile(
	fileName: string,
	commandOptions: any,
	watchMode?: boolean
): Promise<{
	options: MergedRollupOptions[];
	warnings: BatchWarnings;
}>;