Skip to content

Commit

Permalink
fix: use nomodule on shim script
Browse files Browse the repository at this point in the history
  • Loading branch information
deckchairlabs committed Sep 19, 2023
1 parent 87275ce commit bd926cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function createImportMapInjectionStream(

if (enableEsModuleShims && esModuleShimsPath) {
scripts.unshift(
`<script async src="${esModuleShimsPath}" crossorigin="anonymous"></script>`,
`<script async src="${esModuleShimsPath}" crossorigin="anonymous" nomodule></script>`,
);
}

Expand Down

0 comments on commit bd926cb

Please sign in to comment.