diff --git a/src/module.ts b/src/module.ts index 67ecd6ec3..eaf8cc55b 100644 --- a/src/module.ts +++ b/src/module.ts @@ -150,7 +150,7 @@ export default defineNuxtModule({ const dirStat = await stat(path).catch(() => null) if (dirStat && dirStat.isDirectory()) { nuxt.hook('components:dirs', (dirs) => { - dirs.push({ path, pathPrefix: false, prefix: '' }) + dirs.unshift({ path, pathPrefix: false, prefix: '' }) }) } }