Provides universal loading of ES Modules / CommonJS on Node and ES Modules in the browser.
ModuleLoaderObj is returned with the loaded module along with metadata that describes the loading mechanism.
Static
Options object.
A module name, file path, or URL.
Optional
An optional function which resolves the import to set instance.
instance
The module / instance and data about the loading process.
Provides universal loading of ES Modules / CommonJS on Node and ES Modules in the browser.
ModuleLoaderObj is returned with the loaded module along with metadata that describes the loading mechanism.