MCPcopy
hub / github.com/webpack/webpack / getModuleRuntimes

Function getModuleRuntimes

lib/ChunkGraph.js:95–101  ·  view source on GitHub ↗
(chunks)

Source from the content-addressed store, hash-verified

93 * @returns {RuntimeSpecSet} runtimes
94 */
95const getModuleRuntimes = (chunks) => {
96 const runtimes = new RuntimeSpecSet();
97 for (const chunk of chunks) {
98 runtimes.add(chunk.runtime);
99 }
100 return runtimes;
101};
102
103/**
104 * Modules by source type.

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected