Merge pull request #9430 from lingxiaoguang/master
the duplicate logic in buildModule callback and afterBuild
This commit is contained in:
commit
2587a3f125
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue