You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import maps should use fetch hook to retrieve script source
The relevant code from import-maps.js:
if (script.type === 'systemjs-importmap') {
script.sp = true;
var fetchPromise = script.src ? fetch(script.src, { integrity: script.integrity }).then(function (res) {
if (!res.ok)
throw Error(process.env.SYSTEM_PRODUCTION ? res.status : 'Invalid status code: ' + res.status);
return res.text();
Seems like the fetch here should be using the fetch hook instead of the global method? Would be nice for consistency if all fetches SystemJS performs go through the hook.
The text was updated successfully, but these errors were encountered:
Import maps should use fetch hook to retrieve script source
The relevant code from
import-maps.js
:Seems like the
fetch
here should be using the fetch hook instead of the global method? Would be nice for consistency if all fetches SystemJS performs go through the hook.The text was updated successfully, but these errors were encountered: