function
resolve
moduleId: string,
parent: string
): Promise<string>;
Resolve a moduleId as though it were imported from parent
On failure, throws a ResolveMessage
Use resolveSync instead. This async version has no performance benefit; it exists for future-proofing.