MCPcopy
hub / github.com/webpack/webpack / removeChild

Method removeChild

lib/ChunkGroup.js:334–342  ·  view source on GitHub ↗

* Removes a child chunk group and clears the corresponding parent link on * the removed child. * @param {ChunkGroup} group the chunk group to remove * @returns {boolean} returns true if the chunk group was removed

(group)

Source from the content-addressed store, hash-verified

332 * @returns {boolean} returns true if the chunk group was removed
333 */
334 removeChild(group) {
335 if (!this._children.has(group)) {
336 return false;
337 }
338
339 this._children.delete(group);
340 group.removeParent(this);
341 return true;
342 }
343
344 /**
345 * Records a parent chunk group relationship.

Callers 2

removeParentMethod · 0.45
bootstrap.jsFile · 0.45

Calls 3

removeParentMethod · 0.80
hasMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected