Skip to content

Commit f97759f

Browse files
committed
Don’t error when a config file is missing
1 parent 005c1be commit f97759f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/setupTrackingContext.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ function getTailwindConfig(configOrPath) {
6363
}
6464

6565
// It's a plain object, not a path
66-
let newConfig = resolveConfig(
67-
configOrPath.config === undefined ? configOrPath : configOrPath.config
68-
)
66+
let newConfig = resolveConfig(configOrPath?.config ?? configOrPath ?? {})
6967

7068
newConfig = validateConfig(newConfig)
7169

0 commit comments

Comments
 (0)