fix(nuxt): remove unused normalize call

This commit is contained in:
Daniel Roe 2023-08-05 09:42:55 +01:00
parent b702adc245
commit 14bf2b02f9

View File

@ -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)