Skip to content

Commit 592cca3

Browse files
committed
Add back type module to generated script for app
1 parent 0e27aef commit 592cca3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dotcom-rendering/src/lib/assets.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,12 @@ export const generateScriptTags = (scripts: string[]): string[] =>
126126
if (
127127
script.match(WEB) ??
128128
script.match(WEB_VARIANT_SCRIPT) ??
129+
script.match(APPS_SCRIPT) ??
129130
script.match(EDITIONS_CROSSWORD_SCRIPT)
130131
) {
131132
return `<script type="module" src="${script}"></script>`;
132133
}
133134

134-
if (script.match(APPS_SCRIPT)) {
135-
return `<script src="${script}"></script>`;
136-
}
137-
138135
return [
139136
'<!-- The following script does not vary between browsers that support modules and those that do not -->',
140137
`<script defer src="${script}"></script>`,

0 commit comments

Comments
 (0)