Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit fbd3b5f

Browse files
refactor: a refactor
1 parent 901fc02 commit fbd3b5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

html.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ export function createHtml({
2020
if (!util.isString(v) && util.isNEString(v.src)) {
2121
if (v.type === 'module') {
2222
return `<link rel="modulepreload" href=${JSON.stringify(v.src)} />`
23-
} else {
24-
return `<link rel="preload" href=${JSON.stringify(v.src)} as="script" />`
2523
}
24+
return `<link rel="preload" href=${JSON.stringify(v.src)} as="script" />`
2625
}
2726
return ''
2827
})).filter(Boolean)

0 commit comments

Comments
 (0)