histoire
Version:
A fast story book powered by Vite
27 lines • 1.05 kB
TypeScript
import type { Context } from '../context.js';
/** Module graph surface shared by Rollup and Rolldown chunk classifiers. */
interface ChunkGraph {
/** Static dependencies only; dynamic edges retain their lazy ownership. */
getModuleInfo: (id: string) => {
importedIds: readonly string[];
} | null;
}
/** Preserve portable data and lazy engines while sharing dependency-closed vendors. */
export declare function createBuildChunkOutput(ctx: Context): {
onlyExplicitManualChunks: boolean;
manualChunks: (id: string, graph: ChunkGraph) => "embed-data" | "vendor";
codeSplitting?: undefined;
} | {
onlyExplicitManualChunks?: undefined;
manualChunks?: undefined;
codeSplitting: {
includeDependenciesRecursively: boolean;
groups: {
debugName: string;
/** Rolldown supplies dependency lookups without whole-graph enumeration. */
name: (id: string, graph: ChunkGraph) => "embed-data" | "vendor";
}[];
};
};
export {};
//# sourceMappingURL=chunks.d.ts.map