Skip to content

Commit 5ea23e6

Browse files
authored
fix: normalize filename before comparing (#20)
Normalize filename before comparing
1 parent 8e8da63 commit 5ea23e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ module.exports = function protobufJsLoader(source) {
206206

207207
if (fs.existsSync(resolved)) {
208208
// Don't add a dependency on the temp file
209-
if (resolved !== filename) {
209+
if (resolved !== protobuf.util.path.normalize(filename)) {
210210
self.addDependency(resolved);
211211
}
212212
return resolved;

0 commit comments

Comments
 (0)