()
| 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 | |
| 240 | export class DiskBuildCache<State> implements DevBuildCache<State> { |
no test coverage detected