multiple-import-maps-polyfill v0.1.0
·
1 commit
to main
since this release
Minor Changes
-
Added
@remix-run/multiple-import-maps-polyfillfor loading JavaScript modules that depend on import maps added after the initial page load.importModule()detects browser support and uses native imports where possible.detectMultipleImportMapSupport()exposes the same support check, whileimportShim()andpreloadShim()always use the polyfill. Modules preloaded through the polyfill are reused by later imports (see #11706).importModule()resolves relative paths and import map scopes using itsparentUrlargument, which defaults to the document's base URL. See the usage guide for client entry and HMR setup, including Content Security Policy requirements.