F
onModuleLoad
Registers a listener invoked with every module as it loads.
function onModuleLoad(listener: MetroModuleLoadListener): () => voidParameters
| Name | Type | Description |
|---|---|---|
| listener | MetroModuleLoadListener | Callback receiving the module exports and its id. |
Returns
() => voidA function that removes the listener.