Skip to content

Commit 5ec49be

Browse files
authored
fix(plugin-vue): error.length is zero (#6106)
1 parent 4bdf5d7 commit 5ec49be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-vue/src/utils/descriptorCache.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function getDescriptor(
5858
fs.readFileSync(filename, 'utf-8'),
5959
options
6060
)
61-
if (errors) {
61+
if (errors.length) {
6262
throw errors[0]
6363
}
6464
return descriptor

0 commit comments

Comments
 (0)