import-map-overrides icon indicating copy to clipboard operation
import-map-overrides copied to clipboard

Use `System.getImportMap()` instead of an additional fetch

Open romulof opened this issue 1 year ago • 1 comments

SystemJS 6.15 introduced a new API to expose its import map:

https://github.com/systemjs/systemjs/pull/2484

This could be conditionally enabled in a implementation like bellow, so it wouldn't force people to upgrade to 6.15:

if (typeof System.getImportMap === 'function') {
   return System.getImportMap();
} else {
   return fetch(...);
}

romulof avatar Aug 16 '24 18:08 romulof

Avoiding the network request would be nice - would you be willing to fund my work on this? I charge $250/hr, but bill to the minute.

internettrans avatar Sep 14 '24 04:09 internettrans