try to resolve an optional module, with optional handling in case it's not found
import.meta from the caller's context
import.meta
the module specifier to resolve
Optional
options, or message to log when the module is not found
the resolved URL, or the default / notFound result when not found
default
notFound
This is synchronous. Resolving does not evaluate the module, so it can answer "is this dependency available?" without await, which is often the whole question.
await
try to resolve an optional module, with optional handling in case it's not found