MCPcopy Create free account
hub / github.com/angular/angular / resolveModule

Function resolveModule

packages/circular-deps-test.conf.cjs:23–28  ·  view source on GitHub ↗

* Custom module resolver that maps specifiers starting with `@angular/` to the * local packages folder. This ensures that cross package/entry-point dependencies * can be detected.

(specifier)

Source from the content-addressed store, hash-verified

21 * can be detected.
22 */
23function resolveModule(specifier) {
24 if (specifier.startsWith('@angular/')) {
25 return path.join(__dirname, specifier.slice('@angular/'.length));
26 }
27 return null;
28}

Callers

nothing calls this directly

Calls 2

joinMethod · 0.65
sliceMethod · 0.65

Tested by

no test coverage detected