histoire
Version:
A fast story book powered by Vite
30 lines • 1.16 kB
TypeScript
/**
* Merges the `build` sub-config, concatenating `excludeFromVendorsChunk`
* instead of replacing it (plugins contribute their own exclusions).
*/
export declare const mergeBuildConfig: <Source extends {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
}, Defaults extends Array<{
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
} | (number | boolean | any[] | Record<never, any>)>>(source: Source, ...defaults: Defaults) => import("defu").Defu<Source, Defaults>;
/**
* Merges two Histoire configs.
*
* Arrays are replaced by default, except for the keys whose semantics require
* accumulating: `vite` (composed as functions), `plugins` (deduplicated by
* name), `setupCode`, `viteNodeInlineDeps`, `supportMatch` and `build`.
*/
export declare const mergeConfig: <Source extends {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
}, Defaults extends Array<{
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
} | (number | boolean | any[] | Record<never, any>)>>(source: Source, ...defaults: Defaults) => import("defu").Defu<Source, Defaults>;
//# sourceMappingURL=merge.d.ts.map