Files
bunext/dist/functions/server/cleanup-artifacts.d.ts
2026-10-02 14:48:38 +01:00

15 lines
542 B
TypeScript

type Params = {
paradigm: "hydration" | "ssr";
};
/**
* Deletes orphaned entry outputs left behind by previous rebuilds.
*
* After a rebuild the page/SSR artifact maps only reference the newest
* hashed entry files; every previously hashed entry for the same directory
* is provably unreferenced (generated HTML always uses the current map) and
* is removed. Chunks, non-hashed fallback module files and `map.json` are
* left untouched.
*/
export default function cleanupArtifacts({ paradigm }: Params): Promise<void>;
export {};