Fresolve
Bun

function

resolve

function resolve(
moduleId: string,
parent: string
): Promise<string>;

Resolve a moduleId as though it were imported from parent

On failure, throws a ResolveMessage

For now, use the sync version. There is zero performance benefit to using this async version. It exists for future-proofing.