Skip to content

Commit

Permalink
drop query strings and document fragment from path
Browse files Browse the repository at this point in the history
  • Loading branch information
void-mAlex committed May 2, 2021
1 parent 0e4c331 commit 008b32a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jit/lib/setupContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ function trackModified(files) {
for (let file of files) {
if (!file) continue

let pathname = url.parse(file).href
let parsed = url.parse(file)
let pathname = parsed.href.replace(parsed.hash, '').replace(parsed.search, '')
let newModified = fs.statSync(decodeURIComponent(pathname)).mtimeMs

if (!fileModifiedMap.has(file) || newModified > fileModifiedMap.get(file)) {
Expand Down

0 comments on commit 008b32a

Please sign in to comment.