MCPcopy
hub / github.com/webpack/webpack / run

Method run

lib/MultiCompiler.js:676–696  ·  view source on GitHub ↗

* Processes the provided multi stat. * @param {Callback<MultiStats>} callback signals when the call finishes * @returns {void}

(callback)

Source from the content-addressed store, hash-verified

674 * @returns {void}
675 */
676 run(callback) {
677 if (this.running) {
678 callback(new ConcurrentCompilationError());
679 return;
680 }
681 this.running = true;
682
683 if (this.validateDependencies(callback)) {
684 this._runGraph(
685 () => {},
686 (compiler, setupResult, callback) => compiler.run(callback),
687 (err, stats) => {
688 this.running = false;
689
690 if (callback !== undefined) {
691 return callback(err, stats);
692 }
693 }
694 );
695 }
696 }
697
698 purgeInputFileSystem() {
699 for (const compiler of this.compilers) {

Callers

nothing calls this directly

Calls 3

validateDependenciesMethod · 0.95
_runGraphMethod · 0.95
callbackFunction · 0.50

Tested by

no test coverage detected