MCPcopy
hub / github.com/webpack/webpack / setModuleId

Method setModuleId

lib/ChunkGraph.js:1538–1541  ·  view source on GitHub ↗

* Updates module id using the provided module. * @param {Module} module the module * @param {ModuleId} id the id of the module * @returns {void}

(module, id)

Source from the content-addressed store, hash-verified

1536 * @returns {void}
1537 */
1538 setModuleId(module, id) {
1539 const cgm = this._getChunkGraphModule(module);
1540 cgm.id = id;
1541 }
1542
1543 /**
1544 * Returns the id of the runtime.

Callers 10

executeModuleMethod · 0.95
idMethod · 0.80
applyMethod · 0.80
addRuntimeModuleMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
assignAscendingModuleIdsFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

_getChunkGraphModuleMethod · 0.95

Tested by

no test coverage detected