mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 02:17:15 +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 }
|
options: { components, buildDir: nuxt.options.buildDir }
|
||||||
})
|
})
|
||||||
nuxt.hook('prepare:types', ({ references }) => {
|
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
|
// Alias vue to have identical vue3 exports
|
||||||
|
Loading…
Reference in New Issue
Block a user