mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
parent
85f2f83cf2
commit
f753938843
@ -237,7 +237,7 @@ export function normalizeRoutes (routes: NuxtPage[], metaImports: Set<string> =
|
||||
...Object.fromEntries(Object.entries(route).map(([key, value]) => [key, JSON.stringify(value)])),
|
||||
children: route.children ? normalizeRoutes(route.children, metaImports).routes : [],
|
||||
meta: route.meta ? `{...(${metaImportName} || {}), ...${JSON.stringify(route.meta)}}` : metaImportName,
|
||||
alias: `${metaImportName}.alias || []`,
|
||||
alias: `${metaImportName}?.alias || []`,
|
||||
component: genDynamicImport(file)
|
||||
}
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user