* Adds the provided chunk to the module. * @deprecated * @param {Chunk} chunk the chunk * @returns {boolean} true, when the module was added
(chunk)
| 523 | * @returns {boolean} true, when the module was added |
| 524 | */ |
| 525 | addChunk(chunk) { |
| 526 | const chunkGraph = ChunkGraph.getChunkGraphForModule( |
| 527 | this, |
| 528 | "Module.addChunk", |
| 529 | "DEP_WEBPACK_MODULE_ADD_CHUNK" |
| 530 | ); |
| 531 | if (chunkGraph.isModuleInChunk(this, chunk)) return false; |
| 532 | chunkGraph.connectChunkAndModule(chunk, this); |
| 533 | return true; |
| 534 | } |
| 535 | |
| 536 | /** |
| 537 | * Removes the provided chunk from the module. |
no test coverage detected