MCPcopy
hub / github.com/webpack/webpack / checkUsedAndDelete

Method checkUsedAndDelete

lib/Compilation.js:5424–5428  ·  lib/Compilation.js::Compilation.checkUsedAndDelete
(file)

Source from the content-addressed store, hash-verified

5422 * @param {string} file file
5423 */
5424 const checkUsedAndDelete = (file) => {
5425 if (!this._assetsRelatedIn.has(file)) {
5426 this.deleteAsset(file);
5427 }
5428 };
5429 const items = related[key];
5430 if (Array.isArray(items)) {
5431 for (const file of items) {

Callers

nothing calls this directly

Calls 2

deleteAssetMethod · 0.95
hasMethod · 0.45

Tested by

no test coverage detected