MCPcopy
hub / github.com/webpack/webpack / updateCacheModule

Method updateCacheModule

lib/Module.js:1212–1218  ·  view source on GitHub ↗

* Assuming this module is in the cache. Update the (cached) module with * the fresh module from the factory. Usually updates internal references * and properties. * @param {Module} module fresh module * @returns {void}

(module)

Source from the content-addressed store, hash-verified

1210 * @returns {void}
1211 */
1212 updateCacheModule(module) {
1213 this.type = module.type;
1214 this.layer = module.layer;
1215 this.context = module.context;
1216 this.factoryMeta = module.factoryMeta;
1217 this.resolveOptions = module.resolveOptions;
1218 }
1219
1220 /**
1221 * Module should be unsafe cached. Get data that's needed for that.

Callers 1

_addModuleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected