(
from: string,
to: string,
cache: Map<string, string>,
conditions: ReadonlyArray<string>,
)
| 219 | } |
| 220 | |
| 221 | private resolveCached( |
| 222 | from: string, |
| 223 | to: string, |
| 224 | cache: Map<string, string>, |
| 225 | conditions: ReadonlyArray<string>, |
| 226 | ): string { |
| 227 | const key = `${from}\0${to}`; |
| 228 | const cached = cache.get(key); |
| 229 | if (cached !== undefined) return cached; |
| 230 | const resolved = this.resolver.resolveModule(from, to, {conditions}); |
| 231 | cache.set(key, resolved); |
| 232 | return resolved; |
| 233 | } |
| 234 | } |
no test coverage detected