(path: string)
| 209 | * @param path The path to be normalized. |
| 210 | */ |
| 211 | export function normalize(path: string): Path { |
| 212 | let maybePath = normalizedCache.get(path); |
| 213 | if (!maybePath) { |
| 214 | maybePath = noCacheNormalize(path); |
| 215 | normalizedCache.set(path, maybePath); |
| 216 | } |
| 217 | |
| 218 | return maybePath; |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * The no cache version of the normalize() function. Used for benchmarking and testing. |
no test coverage detected