Skip to content

Commit 8a9cc12

Browse files
authored
fix(plugin-vue): error.length is zero (#6106)
1 parent f49282d commit 8a9cc12

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)