MCPcopy
hub / github.com/freshframework/fresh / BuildCache

Interface BuildCache

packages/fresh/src/build_cache.ts:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35// deno-lint-ignore no-explicit-any
36export interface BuildCache<State = any> {
37 root: string;
38 islandRegistry: ServerIslandRegistry;
39 clientEntry: string;
40 /** Pathname for the HMR-only chunk (development only). Undefined in production. */
41 hmrClientEntry?: string;
42 features: {
43 errorOverlay: boolean;
44 };
45 getFsRoutes(): Command<State>[];
46 readFile(pathname: string): Promise<StaticFile | null>;
47 getEntryAssets(): string[];
48}
49
50export class ProdBuildCache<State> implements BuildCache<State> {
51 #snapshot: BuildSnapshot<State>;

Callers 2

fsRoutesMethod · 0.65
preact_hooks.tsFile · 0.65

Implementers 5

MockBuildCachepackages/fresh/src/middlewares/static_
ProdBuildCachepackages/fresh/src/build_cache.ts
MockBuildCachepackages/fresh/src/test_utils.ts
MemoryBuildCachepackages/fresh/src/dev/dev_build_cache
DiskBuildCachepackages/fresh/src/dev/dev_build_cache

Calls

no outgoing calls

Tested by

no test coverage detected