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;