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

Function createLocalAngularPackageImporter

tools/sass/local-sass-importer.ts:12–21  ·  view source on GitHub ↗
(packageDirAbsPath: string)

Source from the content-addressed store, hash-verified

10 * specified local packages directory.
11 */
12export function createLocalAngularPackageImporter(packageDirAbsPath: string): FileImporter {
13 return {
14 findFileUrl: (url: string) => {
15 if (url.startsWith(angularPrefix)) {
16 return pathToFileURL(join(packageDirAbsPath, url.substring(angularPrefix.length))) as URL;
17 }
18 return null;
19 },
20 };
21}

Calls

no outgoing calls

Tested by

no test coverage detected