MCPcopy
hub / github.com/webpack/webpack / addDependency

Method addDependency

lib/DependenciesBlock.js:61–63  ·  view source on GitHub ↗

* Adds the provided dependency to the dependencies block. * @param {Dependency} dependency dependency being tied to block. * This is an "edge" pointing to another "node" on module graph. * @returns {void}

(dependency)

Source from the content-addressed store, hash-verified

59 * @returns {void}
60 */
61 addDependency(dependency) {
62 this.dependencies.push(dependency);
63 }
64
65 /**
66 * Removes dependency.

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected