(workspaceRoot: string, moduleName: string, nodePath: string, tracer: (message: string, verbose?: string) => void)
| 289 | * `resolveModule` this method considers the parent chain as well. |
| 290 | */ |
| 291 | export function resolveModule2(workspaceRoot: string, moduleName: string, nodePath: string, tracer: (message: string, verbose?: string) => void): Thenable<any> { |
| 292 | |
| 293 | return resolveModulePath(workspaceRoot, moduleName, nodePath, tracer).then((path) => { |
| 294 | if (tracer) { |
| 295 | tracer(`Module ${moduleName} got resolved to ${path}`); |
| 296 | } |
| 297 | return require(path); |
| 298 | }); |
| 299 | } |
nothing calls this directly
no test coverage detected