F

getModulePresence

Reports what is known of a lazy handle's module, without loading it or resolving the handle. A plugin should treat unknown as present: a patch on the handle waits for the module, so it never applies to nothing.

function getModulePresence(handle: MetroExport): MetroModulePresence | undefined

Parameters

NameTypeDescription
handleMetroExport

A lazy handle, such as a { lazy: true } search, metro.common.* or metro.stores.*.

Returns

MetroModulePresence | undefined

The module's MetroModulePresence, or undefined when handle is not a handle a patch waits on.