mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(bridge): always add components.d.ts
reference (#2246)
This commit is contained in:
parent
cad09fe9b3
commit
6e719d6977
@ -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') })
|
||||
}
|
||||
})
|
||||
|
||||
// Alias vue to have identical vue3 exports
|
||||
|
Loading…
Reference in New Issue
Block a user