diff --git a/packages/nuxt/src/pages/page-meta.ts b/packages/nuxt/src/pages/page-meta.ts index 5199f9f8a6..c600e17c93 100644 --- a/packages/nuxt/src/pages/page-meta.ts +++ b/packages/nuxt/src/pages/page-meta.ts @@ -40,10 +40,7 @@ export const PageMetaPlugin = createUnplugin((options: PageMetaPluginOptions) => name: 'nuxt:pages-macros-transform', enforce: 'post', transformInclude (id) { - const query = parseMacroQuery(id) - id = normalize(id) - - return !!query.macro + return !!parseMacroQuery(id).macro }, transform (code, id) { const query = parseMacroQuery(id)