MCPcopy Index your code
hub / github.com/angular/angular / getPathNormalizer

Function getPathNormalizer

packages/compiler-cli/src/transformers/i18n.ts:75–81  ·  view source on GitHub ↗
(basePath?: string)

Source from the content-addressed store, hash-verified

73}
74
75function getPathNormalizer(basePath?: string) {
76 // normalize source paths by removing the base path and always using "/" as a separator
77 return (sourcePath: string) => {
78 sourcePath = basePath ? path.relative(basePath, sourcePath) : sourcePath;
79 return sourcePath.split(path.sep).join('/');
80 };
81}

Callers 1

i18nSerializeFunction · 0.85

Calls 2

relativeMethod · 0.65
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…