github remix-run/remix multiple-import-maps-polyfill@0.1.0
multiple-import-maps-polyfill v0.1.0

latest releases: remix@3.0.0-rc.2, static-middleware@0.4.15, spa@0.1.1...
3 hours ago

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.

Don't miss a new remix release

NewReleases is sending notifications on new releases.