Skip to content

Commit

Permalink
fix: normalize filename before comparing (#20)
Browse files Browse the repository at this point in the history
Normalize filename before comparing
  • Loading branch information
tarc committed Nov 23, 2022
1 parent 8e8da63 commit 5ea23e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ea23e6

Please sign in to comment.