refactor(@ngtools/webpack): simplify a call using await

This commit is contained in:
Filipe Silva 2019-03-26 15:55:41 +00:00 committed by Minko Gechev
parent 55a86c99ab
commit 8d82e9812d

View File

@ -760,8 +760,8 @@ export class AngularCompilerPlugin {
return result; return result;
} }
return this.done.then( await this.done;
() => {
// This folder does not exist, but we need to give webpack a resource. // This folder does not exist, but we need to give webpack a resource.
// TODO: check if we can't just leave it as is (angularCoreModuleDir). // TODO: check if we can't just leave it as is (angularCoreModuleDir).
result.resource = path.join(this._basePath, '$$_lazy_route_resource'); result.resource = path.join(this._basePath, '$$_lazy_route_resource');
@ -790,9 +790,6 @@ export class AngularCompilerPlugin {
}; };
return result; return result;
},
() => undefined,
);
}); });
}); });
} }