MCPcopy
hub / github.com/webpack/webpack / addBlock

Method addBlock

lib/DependenciesBlock.js:50–53  ·  view source on GitHub ↗

* Adds a DependencyBlock to DependencyBlock relationship. * This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting) * @param {AsyncDependenciesBlock} block block being added * @returns {void}

(block)

Source from the content-addressed store, hash-verified

48 * @returns {void}
49 */
50 addBlock(block) {
51 this.blocks.push(block);
52 block.parent = this;
53 }
54
55 /**
56 * Adds the provided dependency to the dependencies block.

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected