Skip to content

Commit 797959f

Browse files
authored
chore(html): remove unnecessary value check (#19491)
1 parent 5ea9a42 commit 797959f

File tree

1 file changed

+1
-1
lines changed
  • packages/vite/src/node/plugins

1 file changed

+1
-1
lines changed

packages/vite/src/node/plugins/html.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export function getScriptInfo(node: DefaultTreeAdapterMap['element']): {
216216
src = p
217217
srcSourceCodeLocation = node.sourceCodeLocation?.attrs!['src']
218218
}
219-
} else if (p.name === 'type' && p.value && p.value === 'module') {
219+
} else if (p.name === 'type' && p.value === 'module') {
220220
isModule = true
221221
} else if (p.name === 'async') {
222222
isAsync = true

0 commit comments

Comments
 (0)