MCPcopy
hub / github.com/webpack/webpack / addModule

Method addModule

lib/Compilation.js:1608–1610  ·  view source on GitHub ↗

* Adds the provided module to the compilation. * @param {Module} module module to be added that was created * @param {ModuleCallback} callback returns the module in the compilation, * it could be the passed one (if new), or an already existing in the compilation * @returns {void}

(module, callback)

Source from the content-addressed store, hash-verified

1606 * @returns {void}
1607 */
1608 addModule(module, callback) {
1609 this.addModuleQueue.add(module, callback);
1610 }
1611
1612 /**
1613 * Adds the provided module to the compilation.

Callers 1

handleModuleCreationMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected