Skip to content

Commit

Permalink
Merge pull request #12764 from webpack/performance/caching
Browse files Browse the repository at this point in the history
ensure all successful compiled modules are persistent cached
  • Loading branch information
sokra committed Feb 23, 2021
2 parents 732179e + 1a584d3 commit 472385e
Show file tree
Hide file tree
Showing 8 changed files with 415 additions and 410 deletions.
6 changes: 5 additions & 1 deletion lib/Compilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,11 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si

for (let i = 0; i < dependencies.length; i++) {
const dependency = dependencies[i];
moduleGraph.setResolvedModule(originModule, dependency, module);
moduleGraph.setResolvedModule(
recursive ? originModule : null,
dependency,
module
);
}

moduleGraph.setIssuerIfUnset(
Expand Down

0 comments on commit 472385e

Please sign in to comment.