(url: string)
| 57 | |
| 58 | // Helper to dedupe resource fetches |
| 59 | function cachedResourceResolve(url: string): Promise<string> { |
| 60 | const promiseCached = urlCache.get(url); |
| 61 | if (promiseCached) { |
| 62 | return promiseCached; |
| 63 | } |
| 64 | |
| 65 | const promise = resourceResolver(url).then((response) => unwrapResponse(url, response)); |
| 66 | urlCache.set(url, promise); |
| 67 | |
| 68 | return promise; |
| 69 | } |
| 70 | |
| 71 | const resolutionPromises = Array.from(currentQueue).map(async ([type, component]) => { |
| 72 | if (component.styleUrl && component.styleUrls?.length) { |
no test coverage detected
searching dependent graphs…