MCPcopy Create free account
hub / github.com/angular/dev-infra / loadEsmModule

Function loadEsmModule

ng-dev/ts-circular-dependencies/config.ts:115–122  ·  view source on GitHub ↗
(modulePath: string | URL)

Source from the content-addressed store, hash-verified

113 * @returns A Promise that resolves to the dynamically imported module.
114 */
115export function loadEsmModule<T>(modulePath: string | URL): Promise<T> {
116 load ??= new Function('modulePath', `return import(modulePath);`) as Exclude<
117 typeof load,
118 undefined
119 >;
120
121 return load(modulePath);
122}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected