Skip to content

Commit

Permalink
Don’t error when a config file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Jul 13, 2023
1 parent 005c1be commit f97759f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/setupTrackingContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ function getTailwindConfig(configOrPath) {
}

// It's a plain object, not a path
let newConfig = resolveConfig(
configOrPath.config === undefined ? configOrPath : configOrPath.config
)
let newConfig = resolveConfig(configOrPath?.config ?? configOrPath ?? {})

newConfig = validateConfig(newConfig)

Expand Down

0 comments on commit f97759f

Please sign in to comment.