MCPcopy
hub / github.com/webpack/webpack / getModuleOrdinal

Function getModuleOrdinal

lib/buildChunkGraph.js:322–329  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

320 * @returns {number} The ordinal of the module in masks
321 */
322 const getModuleOrdinal = (module) => {
323 let ordinal = ordinalByModule.get(module);
324 if (ordinal === undefined) {
325 ordinal = ordinalByModule.size;
326 ordinalByModule.set(module, ordinal);
327 }
328 return ordinal;
329 };
330
331 for (const chunk of compilation.chunks) {
332 let mask = ZERO_BIGINT;

Callers 4

visitModulesFunction · 0.85
processBlockFunction · 0.85
processQueueFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected