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', name: 'nuxt:pages-macros-transform',
enforce: 'post', enforce: 'post',
transformInclude (id) { transformInclude (id) {
const query = parseMacroQuery(id) return !!parseMacroQuery(id).macro
id = normalize(id)
return !!query.macro
}, },
transform (code, id) { transform (code, id) {
const query = parseMacroQuery(id) const query = parseMacroQuery(id)