fix(bridge): always add components.d.ts reference (#2246)

This commit is contained in:
Daniel Roe 2021-12-01 11:56:58 +00:00 committed by GitHub
parent cad09fe9b3
commit 6e719d6977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,9 +28,7 @@ export function setupAppBridge (_options: any) {
options: { components, buildDir: nuxt.options.buildDir }
})
nuxt.hook('prepare:types', ({ references }) => {
if (components.length) {
references.push({ path: resolve(nuxt.options.buildDir, 'components.d.ts') })
}
references.push({ path: resolve(nuxt.options.buildDir, 'components.d.ts') })
})
// Alias vue to have identical vue3 exports