Skip to content

Commit abc5947

Browse files
committed
fix: fix undefined error in getTailwindConfig
1 parent 89f0f54 commit abc5947

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/setupTrackingContext.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ function getTailwindConfig(configOrPath) {
5454

5555
// It has changed (based on timestamps), or first run
5656
for (let file of newDeps) {
57+
if (!file || !require.cache || !require.cache[file]) {
58+
continue
59+
}
5760
delete require.cache[file]
5861
}
5962
let newConfig = validateConfig(resolveConfig(loadConfig(userConfigPath)))

0 commit comments

Comments
 (0)