mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): preserve (re)named imports in meta (#19192)
This commit is contained in:
parent
d2481f9675
commit
c4eb4b784c
@ -119,7 +119,7 @@ export const PageMetaPlugin = createUnplugin((options: PageMetaPluginOptions) =>
|
||||
const parsed = parseStaticImport(i)
|
||||
for (const name of [
|
||||
parsed.defaultImport,
|
||||
...Object.keys(parsed.namedImports || {}),
|
||||
...Object.values(parsed.namedImports || {}),
|
||||
parsed.namespacedImport
|
||||
].filter(Boolean) as string[]) {
|
||||
importMap.set(name, i)
|
||||
|
Loading…
Reference in New Issue
Block a user