Skip to content

Commit 977bba6

Browse files
committed
Resolve auto-loaded v3 configs relative to the file being processed
1 parent 4f72d8c commit 977bba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function getTailwindConfig(options: ParserOptions): Promise<any> {
7676
// For the same reasons as the v4 stylesheet, it's important that the config
7777
// file be resolved relative to the file it's configured in.
7878
if (!stylesheet && !mod?.__unstable__loadDesignSystem) {
79-
jsConfig = jsConfig ?? findClosestJsConfig(configDir)
79+
jsConfig = jsConfig ?? findClosestJsConfig(inputDir)
8080
}
8181

8282
// We've found a JS config either because it was specified by the user

0 commit comments

Comments
 (0)