Skip to content

Commit fbbe3c0

Browse files
Use absolute paths when resolving changed files (#9032)
* Fix vite3 postcss statSync not found * Update changelog Co-authored-by: Jordan Pittman <[email protected]>
1 parent 99b53b4 commit fbbe3c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
- Nothing yet!
10+
### Fixed
11+
12+
- Use absolute paths when resolving changed files for resilience against working directory changes ([#9032](https://github.com/tailwindlabs/tailwindcss/pull/9032))
1113

1214
## [3.1.8] - 2022-08-05
1315

src/lib/setupTrackingContext.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function resolvedChangedContent(context, candidateFiles, fileModifiedMap) {
9696
function resolveChangedFiles(candidateFiles, fileModifiedMap) {
9797
let changedFiles = new Set()
9898
env.DEBUG && console.time('Finding changed files')
99-
let files = fastGlob.sync(candidateFiles)
99+
let files = fastGlob.sync(candidateFiles, { absolute: true })
100100
for (let file of files) {
101101
let prevModified = fileModifiedMap.has(file) ? fileModifiedMap.get(file) : -Infinity
102102
let modified = fs.statSync(file).mtimeMs

0 commit comments

Comments
 (0)