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 committed Dec 14, 2021
1 parent 4bdf5d7 commit 5ec49be
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 5ec49be

Please sign in to comment.