fix(nuxt): do not persist extraExtractionKeys on runtime route.meta

This commit is contained in:
Daniel Roe 2024-11-28 09:14:29 +00:00
parent 976024f162
commit ae9f42f4aa
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -300,7 +300,7 @@ export async function getRouteMeta (contents: string, absolutePath: string, extr
continue
}
const name = property.key.type === 'Identifier' ? property.key.name : String(property.value)
if (name) {
if (name && !extraExtractionKeys.includes(name)) {
dynamicProperties.add('meta')
break
}