MCPcopy
hub / github.com/webpack/webpack / index

Method index

lib/Module.js:381–387  ·  view source on GitHub ↗

* Returns the pre-order index. * @deprecated * @returns {number | null} the pre order index

()

Source from the content-addressed store, hash-verified

379 * @returns {number | null} the pre order index
380 */
381 get index() {
382 return ModuleGraph.getModuleGraphForModule(
383 this,
384 "Module.index",
385 "DEP_WEBPACK_MODULE_INDEX"
386 ).getPreOrderIndex(this);
387 }
388
389 /**
390 * Updates the pre-order index using the provided value.

Callers

nothing calls this directly

Calls 3

getPreOrderIndexMethod · 0.80
setPreOrderIndexMethod · 0.80

Tested by

no test coverage detected