MCPcopy Index your code
hub / github.com/angular/angular-cli / normalizePath

Function normalizePath

packages/ngtools/webpack/src/ivy/paths.ts:13–22  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

11const normalizationCache = new Map<string, string>();
12
13export function normalizePath(path: string): string {
14 let result = normalizationCache.get(path);
15
16 if (result === undefined) {
17 result = nodePath.win32.normalize(path).replace(/\\/g, nodePath.posix.sep);
18 normalizationCache.set(path, result);
19 }
20
21 return result;
22}
23
24const externalizationCache = new Map<string, string>();
25

Callers 11

updateMethod · 0.90
_compileMethod · 0.90
getMethod · 0.90
setupCompilationMethod · 0.90
markResourceUsedMethod · 0.90
rebuildRequiredFilesMethod · 0.90
updateAotProgramMethod · 0.90
createFileEmitterMethod · 0.90
augmentHostWithResourcesFunction · 0.90

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected