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