MCPcopy
hub / github.com/webpack/webpack / addModuleChain

Method addModuleChain

lib/Compilation.js:2600–2602  ·  view source on GitHub ↗

* Adds the provided string to the compilation. * @param {string} context context string path * @param {Dependency} dependency dependency used to create Module chain * @param {ModuleCallback} callback callback for when module chain is complete * @returns {void} will throw if dependency instan

(context, dependency, callback)

Source from the content-addressed store, hash-verified

2598 * @returns {void} will throw if dependency instance is not a valid Dependency
2599 */
2600 addModuleChain(context, dependency, callback) {
2601 return this.addModuleTree({ context, dependency }, callback);
2602 }
2603
2604 /**
2605 * Adds the provided object to the compilation.

Callers 2

applyMethod · 0.80
applyMethod · 0.80

Calls 1

addModuleTreeMethod · 0.95

Tested by

no test coverage detected