MCPcopy
hub / github.com/angular/angular-cli / resolve

Function resolve

packages/angular_devkit/core/src/virtual-fs/path.ts:167–173  ·  view source on GitHub ↗
(p1: Path, p2: Path)

Source from the content-addressed store, hash-verified

165 * otherwise will join both p1 and p2.
166 */
167export function resolve(p1: Path, p2: Path): Path {
168 if (isAbsolute(p2)) {
169 return p2;
170 } else {
171 return join(p1, p2);
172 }
173}
174
175export function fragment(path: string): PathFragment {
176 if (path.indexOf(NormalizedSep) != -1) {

Callers 15

webpack.config.mjsFile · 0.90
generateFunction · 0.50
_compileMethod · 0.50
rebuildMethod · 0.50
index_spec.tsFile · 0.50
handleAsyncIteratorFunction · 0.50
strategy_spec.tsFile · 0.50
resolveMethod · 0.50
constructorMethod · 0.50
createSourceFromUrlFunction · 0.50
executeFunction · 0.50

Calls 2

isAbsoluteFunction · 0.85
joinFunction · 0.85

Tested by

no test coverage detected