MCPcopy
hub / github.com/webpack/webpack / chunkCondition

Method chunkCondition

lib/container/FallbackModule.js:89–91  ·  view source on GitHub ↗

* Returns true if the module can be placed in the chunk. * @param {Chunk} chunk the chunk which condition should be checked * @param {Compilation} compilation the compilation * @returns {boolean} true if the module can be placed in the chunk

(chunk, { chunkGraph })

Source from the content-addressed store, hash-verified

87 * @returns {boolean} true if the module can be placed in the chunk
88 */
89 chunkCondition(chunk, { chunkGraph }) {
90 return chunkGraph.getNumberOfEntryModules(chunk) > 0;
91 }
92
93 /**
94 * Checks whether the module needs to be rebuilt for the current build state.

Callers 2

handlerMethod · 0.45
applyMethod · 0.45

Calls 1

Tested by

no test coverage detected