Skip to content

Commit

Permalink
fix(nuxt): use rootDir instead of srcDir to find the config files und…
Browse files Browse the repository at this point in the history
…er the layer (#4367)
  • Loading branch information
byronogis authored Jan 8, 2025
1 parent c76f997 commit 4d64ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default defineNuxtModule<UnocssNuxtOptions>({
filename: 'uno.config.mjs',
async getContents() {
const configPaths = (await Promise.all(nuxt.options._layers.slice(1).map(layer =>
findPath(options.configFile || ['uno.config', 'unocss.config'], { cwd: layer.config.srcDir }),
findPath(options.configFile || ['uno.config', 'unocss.config'], { cwd: layer.config.rootDir }),
)))
.filter(Boolean)
.reverse() as string[]
Expand Down

0 comments on commit 4d64ffc

Please sign in to comment.