MCPcopy
hub / github.com/webpack/webpack / id

Method id

lib/Module.js:301–307  ·  view source on GitHub ↗

* Returns the module id assigned by the chunk graph. * @deprecated * @returns {ModuleId | null} module id

()

Source from the content-addressed store, hash-verified

299 * @returns {ModuleId | null} module id
300 */
301 get id() {
302 return ChunkGraph.getChunkGraphForModule(
303 this,
304 "Module.id",
305 "DEP_WEBPACK_MODULE_ID"
306 ).getModuleId(this);
307 }
308
309 /**
310 * Updates the module id using the provided value.

Callers

nothing calls this directly

Calls 3

getModuleIdMethod · 0.80
setModuleIdMethod · 0.80

Tested by

no test coverage detected