import type {Bud} from '@roots/bud-framework' import type { Configuration, MultiCompiler, MultiStats, StatsCompilation, } from '@roots/bud-framework/config' /** * Compiler service */ export interface Compiler { /** * Returns a {@link WebpackMultiCompiler} instance * * @example * ```js * bud.compiler.compile() * ``` */ compile(bud: Bud): Promise /** * The compiler configuration */ config: {parallelism?: number} & Array> /** * Compiler implementation */ implementation: any /** * The compiler instance */ instance: MultiCompiler /** * Stats handler */ onStats(stats: MultiStats): void /** * Raw stats */ stats: StatsCompilation } export type Config = Configuration