MCPcopy
hub / github.com/webpack/webpack / getModules

Method getModules

lib/Chunk.js:271–277  ·  view source on GitHub ↗

* Returns the modules for this chunk. * @deprecated * @returns {Module[]} the modules for this chunk

()

Source from the content-addressed store, hash-verified

269 * @returns {Module[]} the modules for this chunk
270 */
271 getModules() {
272 return ChunkGraph.getChunkGraphForChunk(
273 this,
274 "Chunk.getModules",
275 "DEP_WEBPACK_CHUNK_GET_MODULES"
276 ).getChunkModules(this);
277 }
278
279 /**
280 * Removes this chunk from the chunk graph and chunk groups.

Callers 1

webpack.config.jsFile · 0.45

Calls 2

getChunkModulesMethod · 0.80
getChunkGraphForChunkMethod · 0.80

Tested by

no test coverage detected