Class ModuleLoader
Index
Constructors
Methods
Constructors
constructor
- new
Module (): ModuleLoaderLoader Returns ModuleLoader
Methods
Static
load
- load<M, E>(options): Promise<ModuleLoaderObj<M, E>>
Type Parameters
Parameters
Returns Promise<ModuleLoaderObj<M, E>>
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.