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

Method prepare

packages/fresh/src/dev/dev_build_cache.ts:227–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225 }
226
227 async prepare(): Promise<void> {
228 // Load FS routes
229 const files = await Promise.all(this.#fsRoutes.files.map(async (file) => {
230 const fileUrl = maybeToFileUrl(file.filePath);
231 return {
232 ...file,
233 mod: file.lazy ? () => import(fileUrl) : await import(fileUrl),
234 };
235 }));
236 this.#commands = fsItemsToCommands(files);
237 }
238}
239
240export class DiskBuildCache<State> implements DevBuildCache<State> {

Callers 1

listenMethod · 0.95

Calls 3

fsItemsToCommandsFunction · 0.90
maybeToFileUrlFunction · 0.85
allMethod · 0.80

Tested by

no test coverage detected