Skip to content

Commit

Permalink
fix(plugin-vue): error.length is zero (#6106)
Browse files Browse the repository at this point in the history
  • Loading branch information
sufuwang authored Dec 14, 2021
1 parent f49282d commit 8a9cc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-vue/src/utils/descriptorCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function getDescriptor(
fs.readFileSync(filename, 'utf-8'),
options
)
if (errors) {
if (errors.length) {
throw errors[0]
}
return descriptor
Expand Down

0 comments on commit 8a9cc12

Please sign in to comment.