/utils/esmImport
The module exports a default method to import modules from esm.sh cdn.
- Source
Methods
(async, inner) esmImport(module) → {Promise.<Module>}
The esmImport method add a promise to the promises object for the module to be imported.
An existing promise will be awaited.
The promise resolves to the module to be imported.
Parameters:
Name | Type | Description |
---|---|---|
module | string | The module to import. |
- Source
Returns:
The promise resolves to the imported module.
- Type:
- Promise.<Module>