Merge pull request #9430 from lingxiaoguang/master

the duplicate logic in buildModule callback and afterBuild
This commit is contained in:
Tobias Koppers 2019-07-27 18:41:32 +02:00 committed by GitHub
commit 2587a3f125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -913,11 +913,6 @@ class Compilation extends Tapable {
iterationDependencies(dependencies);
const afterBuild = () => {
if (currentProfile) {
const afterBuilding = Date.now();
currentProfile.building = afterBuilding - afterFactory;
}
if (recursive && addModuleResult.dependencies) {
this.processModuleDependencies(dependentModule, callback);
} else {
@ -1059,11 +1054,6 @@ class Compilation extends Tapable {
module.addReason(null, dependency);
const afterBuild = () => {
if (currentProfile) {
const afterBuilding = Date.now();
currentProfile.building = afterBuilding - afterFactory;
}
if (addModuleResult.dependencies) {
this.processModuleDependencies(module, err => {
if (err) return callback(err);