MCPcopy
hub / github.com/webpack/webpack / getModule

Method getModule

lib/Compilation.js:1663–1666  ·  view source on GitHub ↗

* Fetches a module from a compilation by its identifier * @param {Module} module the module provided * @returns {Module} the module requested

(module)

Source from the content-addressed store, hash-verified

1661 * @returns {Module} the module requested
1662 */
1663 getModule(module) {
1664 const identifier = module.identifier();
1665 return /** @type {Module} */ (this._modules.get(identifier));
1666 }
1667
1668 /**
1669 * Attempts to search for a module by its identifier

Callers 5

sealMethod · 0.45
mapAndSortMethod · 0.45
runIterationMethod · 0.45
iteratorDependencyMethod · 0.45

Calls 2

identifierMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected