Skip to content

multiple-import-maps-polyfill v0.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Sep 23:07
· 1 commit to main since this release
02e2d36

Minor Changes

  • Added @remix-run/multiple-import-maps-polyfill for 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, while importShim() and preloadShim() 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 its parentUrl argument, which defaults to the document's base URL. See the usage guide for client entry and HMR setup, including Content Security Policy requirements.