Skip to content

Commit

Permalink
warning added
Browse files Browse the repository at this point in the history
s
  • Loading branch information
janat08 committed Jun 15, 2019
1 parent 2888e48 commit 735c329
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class Majo extends EventEmitter {
const { absPath } = stats
return fs.readFile(absPath).then(contents => {
const file = { contents, stats, path: absPath }
if (typeof this.files[stats.path] !== 'undefined') {
console.warn('majo has encountered duplicate relative path and has overwritten initial one due duplicate sources')
}
this.files[stats.path] = file
})
})
Expand Down

0 comments on commit 735c329

Please sign in to comment.