MCPcopy
hub / github.com/webpack/webpack / isKept

Method isKept

lib/CleanPlugin.js:440–444  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

438 * @returns {boolean | undefined} true, if needs to be kept
439 */
440 const isKept = (path) => {
441 const result = hooks.keep.call(path);
442 if (result !== undefined) return result;
443 return keepFn(path);
444 };
445
446 /**
447 * Processes the provided err.

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected