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

Function resolveModule

src/circular-deps-test.conf.cjs:27–32  ·  view source on GitHub ↗

* Custom module resolver that maps specifiers starting with `@angular/` to the * local packages folder. This ensures that imports using the module name can be * resolved. Cross entry-point/package circular dependencies are already be detected * by Bazel, but in rare cases, the module name is used

(specifier)

Source from the content-addressed store, hash-verified

25 * by Bazel, but in rare cases, the module name is used for imports within entry-points.
26 */
27function resolveModule(specifier) {
28 if (specifier.startsWith('@angular/')) {
29 return path.join(__dirname, specifier.slice('@angular/'.length));
30 }
31 return null;
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected