From 0100a8f8bfa33b15d5515f97238ee8f871790d2f Mon Sep 17 00:00:00 2001 From: Kentaro Imai Date: Wed, 14 Aug 2024 05:13:50 +0900 Subject: [PATCH] Fix "Fix unchanged revision hashes in Windows" --- lib/compile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/compile.js b/lib/compile.js index c522e78..938e83e 100644 --- a/lib/compile.js +++ b/lib/compile.js @@ -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;