Skip to content

Commit

Permalink
fix: use nomodule on shim script (exhibitionist-digital#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
deckchairlabs authored Sep 19, 2023
1 parent 87275ce commit 4c9888e
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 4c9888e

Please sign in to comment.