Skip to content

remix/multiple-import-maps-polyfill · Function

View Source

importShim

Summary

Loads a JavaScript module through the polyfill using every import map currently installed in the document. This function does not detect native multiple import map support.

Signature

function importShim(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.