MCPcopy
hub / github.com/webpack/webpack / getModuleId

Method getModuleId

lib/ChunkGraph.js:1527–1530  ·  view source on GitHub ↗

* Returns the id of the module. * @param {Module} module the module * @returns {ModuleId | null} the id of the module

(module)

Source from the content-addressed store, hash-verified

1525 * @returns {ModuleId | null} the id of the module
1526 */
1527 getModuleId(module) {
1528 const cgm = this._getChunkGraphModule(module);
1529 return cgm.id;
1530 }
1531
1532 /**
1533 * Updates module id using the provided module.

Callers 15

getChunkModuleIdMapMethod · 0.95
getUserRequestMapMethod · 0.80
getFakeMapMethod · 0.80
getLazySourceMethod · 0.80
getSourceStringMethod · 0.80
weakErrorMethod · 0.80
moduleIdMethod · 0.80
moduleRawMethod · 0.80
moduleNamespaceMethod · 0.80

Calls 1

_getChunkGraphModuleMethod · 0.95

Tested by

no test coverage detected