* Adds the provided module to the chunk. * @deprecated * @param {Module} module the module * @returns {boolean} true, if the chunk could be added
(module)
| 181 | * @returns {boolean} true, if the chunk could be added |
| 182 | */ |
| 183 | addModule(module) { |
| 184 | const chunkGraph = ChunkGraph.getChunkGraphForChunk( |
| 185 | this, |
| 186 | "Chunk.addModule", |
| 187 | "DEP_WEBPACK_CHUNK_ADD_MODULE" |
| 188 | ); |
| 189 | if (chunkGraph.isModuleInChunk(module, this)) return false; |
| 190 | chunkGraph.connectChunkAndModule(this, module); |
| 191 | return true; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Removes the provided module from the chunk. |
nothing calls this directly
no test coverage detected