Skip to content

Commit

Permalink
fixup import processing skip for inline shim scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 18, 2021
1 parent 1f5a74b commit 3ac57de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/es-module-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function topLevelLoad (url, source, polyfill) {
// early analysis opt-out
if (supportsDynamicImport && supportsImportMeta && supportsImportMaps && !importMapSrcOrLazy) {
// dont reexec inline for polyfills -> just return null
return source && polyfill ? null : dynamicImport(url || createBlob(source));
return source && polyfill ? null : dynamicImport(source ? createBlob(source) : url);
}
if (waitingForImportMapsInterval > 0) {
clearTimeout(waitingForImportMapsInterval);
Expand Down

0 comments on commit 3ac57de

Please sign in to comment.