mirror of https://github.com/webpack/webpack.git
remove cacheGroup argument from addModule
This commit is contained in:
parent
4eab41bd5f
commit
52634e7a2d
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue