Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Sep 28, 2021
1 parent dd0d281 commit 51da6b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/es-module-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,12 +467,13 @@ function processImportMap (script) {
return;
importMapSrcOrLazy = true;
}
if (acceptingImportMaps)
if (acceptingImportMaps) {
importMapPromise = importMapPromise.then(async () => {
importMap = resolveAndComposeImportMap(script.src ? await (await fetchHook(script.src)).json() : JSON.parse(script.innerHTML), script.src || pageBaseUrl, importMap);
});
else if (!shimMode)
acceptingImportMaps = false;
if (!shimMode)
acceptingImportMaps = false;
}
}

function processScript (script) {
Expand Down

0 comments on commit 51da6b7

Please sign in to comment.