MCPcopy
hub / github.com/webpack/webpack / hasEntryModule

Method hasEntryModule

lib/Chunk.js:167–175  ·  view source on GitHub ↗

* Checks whether this chunk has an entry module. * @deprecated * @returns {boolean} true, if the chunk contains an entry module

()

Source from the content-addressed store, hash-verified

165 * @returns {boolean} true, if the chunk contains an entry module
166 */
167 hasEntryModule() {
168 return (
169 ChunkGraph.getChunkGraphForChunk(
170 this,
171 "Chunk.hasEntryModule",
172 "DEP_WEBPACK_CHUNK_HAS_ENTRY_MODULE"
173 ).getNumberOfEntryModules(this) > 0
174 );
175 }
176
177 /**
178 * Adds the provided module to the chunk.

Callers 1

webpack.config.jsFile · 0.80

Calls 2

getChunkGraphForChunkMethod · 0.80

Tested by

no test coverage detected