Skip to content

Commit

Permalink
fix(nuxt): preserve (re)named imports in meta (#19192)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 21, 2023
1 parent d2481f9 commit c4eb4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/pages/page-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c4eb4b7

Please sign in to comment.