Skip to content

Commit

Permalink
Fix "Fix unchanged revision hashes in Windows"
Browse files Browse the repository at this point in the history
  • Loading branch information
kentaroi committed Aug 13, 2024
1 parent 58024b9 commit 0100a8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const compile = async function(inputContent, inputPath, sassOptions, config, pos
// become self-referential. This means that `dependantsOf()` for an updated file
// returns not only files that depend on it but also the updated file itself.
let dependant = path.normalize(inputPath);
let loadedPaths = loadedUrls.map(loadedUrl => path.relative(workingDir, url.fileURLToPath(loadedUrl, {windows: false })));
let loadedPaths = loadedUrls.map(loadedUrl => {
return path.relative(workingDir, upath.normalize(url.fileURLToPath(loadedUrl)));
});
depMap.update(dependant, loadedPaths);

return css;
Expand Down

0 comments on commit 0100a8f

Please sign in to comment.