MCPcopy
hub / github.com/webpack/webpack / log

Function log

lib/CleanPlugin.js:180–186  ·  lib/CleanPlugin.js::log
(msg)

Source from the content-addressed store, hash-verified

178 * @param {string} msg message
179 */
180 const log = (msg) => {
181 if (dry) {
182 logger.info(msg);
183 } else {
184 logger.log(msg);
185 }
186 };
187 /** @typedef {{ type: class="st">"check" | class="st">"unlink" | class="st">"rmdir", filename: string, parent: { remaining: number, job: Job } | undefined }} Job */
188 /** @type {Job[]} */
189 const jobs = Array.from(diff.keys(), (filename) => ({

Callers 12

handleErrorFunction · 0.70
applyDiffFunction · 0.70
checkFunction · 0.50
handlerFunction · 0.50
dev-server.jsFile · 0.50
checkFunction · 0.50
handlerFunction · 0.50
only-dev-server.jsFile · 0.50
checkForUpdateFunction · 0.50
signal.jsFile · 0.50
checkForUpdateFunction · 0.50

Calls 2

infoMethod · 0.80
logMethod · 0.80

Tested by

no test coverage detected