import-inspector
Wrap dynamic imports with metadata about the import
; const stopInspecting = ; ;// log: { whatever: 42 } ;
API
inspect(callback)
Add a callback to be called whenever the report()
function is called.
Receives metadata
from report()
.
Returns a function stopInspecting()
that will stop the callback
from being
called again.
report(promise, metadata)
Wrap an import promise with some metadata to report.