fix(bridge): handle missing experimental key on bridge (#3763)

This commit is contained in:
Daniel Roe 2022-03-18 10:45:30 +00:00 committed by GitHub
parent f69126e8f4
commit 30b8059d6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ export const writeTypes = async (nuxt: Nuxt) => {
.filter(f => typeof f === 'string')
.map(id => ({ types: getNearestPackage(id, modulePaths)?.name || id }))
if (nuxt.options.experimental.reactivityTransform) {
if (nuxt.options.experimental?.reactivityTransform) {
references.push({ types: 'vue/macros-global' })
}