It must be the import.metaobject, not import.meta.url: the single argument form of
import.meta.resolve has no parent parameter, so the bound resolve function is the only
carrier of the caller's module context. Resolving with our own import.meta instead would
look for the optional dependency next to this package rather than next to the caller.
The caller's
import.meta.It must be the
import.metaobject, notimport.meta.url: the single argument form ofimport.meta.resolvehas no parent parameter, so the boundresolvefunction is the only carrier of the caller's module context. Resolving with our ownimport.metainstead would look for the optional dependency next to this package rather than next to the caller.