MCPcopy
hub / github.com/webpack/webpack / runCompilerAsync

Function runCompilerAsync

test/ProgressPlugin.test.js:88–99  ·  test/ProgressPlugin.test.js::runCompilerAsync
(
	/** @type {import("../").Compiler | import("../").MultiCompiler} */ compiler
)

Source from the content-addressed store, hash-verified

86 logsStr.split(/\r/).filter((/** @type {string} */ v) => v !== class="st">" ");
87
88const runCompilerAsync = (
89 /** @type {import(class="st">"../").Compiler | import(class="st">"../").MultiCompiler} */ compiler
90) =>
91 new Promise((resolve, reject) => {
92 compiler.run((/** @type {Error | null} */ err) => {
93 if (err) {
94 reject(err);
95 } else {
96 resolve(undefined);
97 }
98 });
99 });
100
101/** @typedef {{ toString(): string, toStringRaw(): string, restore(): void, data: string[], reset(): void }} CapturedStdio */
102

Callers 3

nanTestFunction · 0.85
monotonicTestFunction · 0.85

Calls 2

resolveFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected