Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 53e5b52

Browse files
committed
Use file name as keys, even including query string
1 parent 6de7f04 commit 53e5b52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/setupContext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ function trackModified(files) {
186186
let pathname = url.parse(file).pathname
187187
let newModified = fs.statSync(pathname).mtimeMs
188188

189-
if (!fileModifiedMap.has(pathname) || newModified > fileModifiedMap.get(pathname)) {
189+
if (!fileModifiedMap.has(file) || newModified > fileModifiedMap.get(file)) {
190190
changed = true
191191
}
192192

193-
fileModifiedMap.set(pathname, newModified)
193+
fileModifiedMap.set(file, newModified)
194194
}
195195

196196
return changed

0 commit comments

Comments
 (0)