mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
fix(bridge): add schema.d.ts to nuxt.d.ts (#3237)
This commit is contained in:
parent
60e672f335
commit
07c14b8704
@ -48,6 +48,10 @@ export function setupAppBridge (_options: any) {
|
||||
})))
|
||||
addTemplate(schemaTemplate)
|
||||
})
|
||||
nuxt.hook('prepare:types', ({ references }) => {
|
||||
// Add module augmentations directly to NuxtConfig
|
||||
references.push({ path: resolve(nuxt.options.buildDir, 'types/schema.d.ts') })
|
||||
})
|
||||
|
||||
// Alias vue to have identical vue3 exports
|
||||
nuxt.options.alias['vue2-bridge'] = resolve(distDir, 'runtime/vue2-bridge.mjs')
|
||||
|
Loading…
Reference in New Issue
Block a user