diff --git a/packages/plugin-vue/src/utils/descriptorCache.ts b/packages/plugin-vue/src/utils/descriptorCache.ts index dde91e21d077e5..c2d43cc092b0bf 100644 --- a/packages/plugin-vue/src/utils/descriptorCache.ts +++ b/packages/plugin-vue/src/utils/descriptorCache.ts @@ -59,7 +59,7 @@ export function getDescriptor( fs.readFileSync(filename, 'utf-8'), options ) - if (errors) { + if (errors.length) { throw errors[0] } return descriptor