MCPcopy
hub / github.com/webpack/webpack / findModule

Method findModule

lib/Compilation.js:1673–1675  ·  view source on GitHub ↗

* Attempts to search for a module by its identifier * @param {string} identifier identifier (usually path) for module * @returns {Module | undefined} attempt to search for module and return it, else undefined

(identifier)

Source from the content-addressed store, hash-verified

1671 * @returns {Module | undefined} attempt to search for module and return it, else undefined
1672 */
1673 findModule(identifier) {
1674 return this._modules.get(identifier);
1675 }
1676
1677 /**
1678 * Schedules a build of the module object

Callers 2

getTaskForFileFunction · 0.80
applyMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected