Skip to content

Commit 4d64ffc

Browse files
authored
fix(nuxt): use rootDir instead of srcDir to find the config files under the layer (#4367)
1 parent c76f997 commit 4d64ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default defineNuxtModule<UnocssNuxtOptions>({
8181
filename: 'uno.config.mjs',
8282
async getContents() {
8383
const configPaths = (await Promise.all(nuxt.options._layers.slice(1).map(layer =>
84-
findPath(options.configFile || ['uno.config', 'unocss.config'], { cwd: layer.config.srcDir }),
84+
findPath(options.configFile || ['uno.config', 'unocss.config'], { cwd: layer.config.rootDir }),
8585
)))
8686
.filter(Boolean)
8787
.reverse() as string[]

0 commit comments

Comments
 (0)