MCPcopy
hub / github.com/webpack/webpack / addChild

Method addChild

lib/ChunkGroup.js:306–310  ·  view source on GitHub ↗

* Adds a child chunk group to the current group. * @param {ChunkGroup} group chunk group to add * @returns {boolean} returns true if chunk group was added

(group)

Source from the content-addressed store, hash-verified

304 * @returns {boolean} returns true if chunk group was added
305 */
306 addChild(group) {
307 const size = this._children.size;
308 this._children.add(group);
309 return size !== this._children.size;
310 }
311
312 /**
313 * Returns the child chunk groups reachable from this group.

Callers 3

connectChunkGroupsFunction · 0.45
sealMethod · 0.45
removeMethod · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected