From 5ea23e69be9bbd85fb87c72ea18889ffd4e03027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarc=C3=ADsio=20Genaro=20Rodrigues?= Date: Tue, 22 Nov 2022 21:19:16 -0300 Subject: [PATCH] fix: normalize filename before comparing (#20) Normalize filename before comparing --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9160a7b..d783f58 100644 --- a/index.js +++ b/index.js @@ -206,7 +206,7 @@ module.exports = function protobufJsLoader(source) { if (fs.existsSync(resolved)) { // Don't add a dependency on the temp file - if (resolved !== filename) { + if (resolved !== protobuf.util.path.normalize(filename)) { self.addDependency(resolved); } return resolved;