Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use System.getImportMap() instead of an additional fetch #109

Open
romulof opened this issue Aug 16, 2024 · 1 comment
Open

Use System.getImportMap() instead of an additional fetch #109

romulof opened this issue Aug 16, 2024 · 1 comment

Comments

@romulof
Copy link

romulof commented Aug 16, 2024

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

systemjs/systemjs#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(...);
}
@joeldenning
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants