importModule
Summary
Loads a JavaScript module, using the multiple import map polyfill when required.
Signature
function importModule(specifier: string, parentUrl: string): Promise<ModuleNamespace>
Parameters
specifier
Module specifier to load.
parentUrl
URL to resolve the specifier from. (default: document.baseURI)
Returns
The loaded module namespace.