Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
Co-authored-by: Shinigami <chrissi92@hotmail.de>
  • Loading branch information
patak-dev and Shinigami92 committed Aug 23, 2022
1 parent f4ccb59 commit 29d1e58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/html.ts
Expand Up @@ -182,8 +182,7 @@ export function getScriptInfo(node: DefaultTreeAdapterMap['element']): {
let sourceCodeLocation: Token.Location | undefined
let isModule = false
let isAsync = false
for (let i = 0; i < node.attrs.length; i++) {
const p = node.attrs[i]
for (const p of node.attrs) {
if (p.name === 'src') {
src = p
sourceCodeLocation = node.sourceCodeLocation?.attrs!['src']
Expand Down

0 comments on commit 29d1e58

Please sign in to comment.