Fix build lags
This commit is contained in:
+11
-3
@@ -1,6 +1,14 @@
|
||||
import type { BundlerCTXMap } from "../../types";
|
||||
type Params = {
|
||||
new_artifacts: BundlerCTXMap[];
|
||||
paradigm: "hydration" | "ssr";
|
||||
};
|
||||
export default function cleanupArtifacts({ new_artifacts }: Params): Promise<void>;
|
||||
/**
|
||||
* 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 {};
|
||||
|
||||
Reference in New Issue
Block a user