Skip to content

Commit

Permalink
fix: unshift components dirs to prevent getting prefixed
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 19, 2024
1 parent 113353e commit 8f8b373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default defineNuxtModule<ModuleOptions>({
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: '' })
})
}
}
Expand Down

0 comments on commit 8f8b373

Please sign in to comment.