remove cacheGroup argument from addModule

This commit is contained in:
Tobias Koppers 2018-09-26 09:32:46 +02:00
parent 4eab41bd5f
commit 52634e7a2d
1 changed files with 2 additions and 3 deletions

View File

@ -461,17 +461,16 @@ class Compilation {
/**
* @param {Module} module module to be added that was created
* @param {any=} cacheGroup cacheGroup it is apart of
* @returns {Module} returns the module in the compilation,
* it could be the passed one (if new), or an already existing in the compilation
*/
addModule(module, cacheGroup) {
addModule(module) {
const identifier = module.identifier();
const alreadyAddedModule = this._modules.get(identifier);
if (alreadyAddedModule) {
return alreadyAddedModule;
}
const cacheName = (cacheGroup || "m") + identifier;
const cacheName = "m" + identifier;
if (this.cache && this.cache[cacheName]) {
const cacheModule = this.cache[cacheName];