Skip to content

Commit

Permalink
fix(compiler-sfc): avoid passing forEach index to genMap
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 4, 2023
1 parent 43c3cfd commit f12db7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/compiler-sfc/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ export function parse(
}
genMap(descriptor.template, templateColumnOffset)
genMap(descriptor.script)
descriptor.styles.forEach(genMap)
descriptor.customBlocks.forEach(genMap)
descriptor.styles.forEach(s => genMap(s))
descriptor.customBlocks.forEach(s => genMap(s))
}

// parse CSS vars
Expand Down

0 comments on commit f12db7f

Please sign in to comment.