Skip to content

Commit

Permalink
fix: don't add dependencies twice to the webpack 5 watcher api
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Apr 28, 2020
1 parent 96e0ae6 commit ceafe14
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/webpack5/file-watcher-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function isSnapShotValid (snapshot, mainCompilation) {
function watchFiles (mainCompilation, fileDependencies) {
Object.keys(fileDependencies).forEach((depencyTypes) => {
fileDependencies[depencyTypes].forEach(fileDependency => {
mainCompilation.fileDependencies.add(fileDependency);
mainCompilation[depencyTypes].add(fileDependency);
});
});
Expand Down

0 comments on commit ceafe14

Please sign in to comment.