MCPcopy
hub / github.com/webpack/webpack / removeParent

Method removeParent

lib/ChunkGroup.js:387–393  ·  view source on GitHub ↗

* Removes a parent chunk group and clears the reverse child relationship. * @param {ChunkGroup} chunkGroup the parent group * @returns {boolean} returns true if this group has been removed from the parent

(chunkGroup)

Source from the content-addressed store, hash-verified

385 * @returns {boolean} returns true if this group has been removed from the parent
386 */
387 removeParent(chunkGroup) {
388 if (this._parents.delete(chunkGroup)) {
389 chunkGroup.removeChild(this);
390 return true;
391 }
392 return false;
393 }
394
395 /**
396 * Registers an async entrypoint that is rooted in this chunk group.

Callers 1

removeChildMethod · 0.80

Calls 2

deleteMethod · 0.45
removeChildMethod · 0.45

Tested by

no test coverage detected