(modulePath: string | URL)
| 113 | * @returns A Promise that resolves to the dynamically imported module. |
| 114 | */ |
| 115 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected