MCPcopy
hub / github.com/webpack/webpack / addParent

Method addParent

lib/ChunkGroup.js:349–355  ·  view source on GitHub ↗

* Records a parent chunk group relationship. * @param {ChunkGroup} parentChunk the parent group to be added into * @returns {boolean} returns true if this chunk group was added to the parent group

(parentChunk)

Source from the content-addressed store, hash-verified

347 * @returns {boolean} returns true if this chunk group was added to the parent group
348 */
349 addParent(parentChunk) {
350 if (!this._parents.has(parentChunk)) {
351 this._parents.add(parentChunk);
352 return true;
353 }
354 return false;
355 }
356
357 /**
358 * Returns the parent chunk groups that can lead to this group.

Callers 3

connectChunkGroupsFunction · 0.80
sealMethod · 0.80
removeMethod · 0.80

Calls 2

hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected