MCPcopy
hub / github.com/webpack/webpack / isInChunk

Method isInChunk

lib/Module.js:556–562  ·  view source on GitHub ↗

* Checks whether this module is in the provided chunk. * @deprecated * @param {Chunk} chunk the chunk * @returns {boolean} true, when the module is in the chunk

(chunk)

Source from the content-addressed store, hash-verified

554 * @returns {boolean} true, when the module is in the chunk
555 */
556 isInChunk(chunk) {
557 return ChunkGraph.getChunkGraphForModule(
558 this,
559 "Module.isInChunk",
560 "DEP_WEBPACK_MODULE_IS_IN_CHUNK"
561 ).isModuleInChunk(this, chunk);
562 }
563
564 /**
565 * @deprecated

Callers 1

webpack.config.jsFile · 0.80

Calls 2

isModuleInChunkMethod · 0.80

Tested by

no test coverage detected