(context: LoadContext)
| 13 | } |
| 14 | |
| 15 | async initialize(context: LoadContext) { |
| 16 | for (const {initialize} of this.loaders) { |
| 17 | const loader = initialize(context) |
| 18 | if (await loader.when()) return loader |
| 19 | } |
| 20 | throw new Error("Loader not found") |
| 21 | } |
| 22 | |
| 23 | private get loaders() { |
| 24 | return [...this.list, ...DEFAULT_LOADERS] |
no test coverage detected