/utils/esmImport

The module exports a default method to import modules from esm.sh cdn.

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:
NameTypeDescription
modulestring

The module to import.

Returns:

The promise resolves to the imported module.

Type: 
Promise.<Module>