MCPcopy
hub / github.com/webpack/webpack / add

Method add

lib/Compilation.js:5205–5215  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

5203 * @param {string} name name
5204 */
5205 const add = (name) => {
5206 let relatedIn = this._assetsRelatedIn.get(name);
5207 if (relatedIn === undefined) {
5208 this._assetsRelatedIn.set(name, (relatedIn = new Map()));
5209 }
5210 let entry = relatedIn.get(key);
5211 if (entry === undefined) {
5212 relatedIn.set(key, (entry = new Set()));
5213 }
5214 entry.add(file);
5215 };
5216 const entry = newRelated[key];
5217 if (Array.isArray(entry)) {
5218 for (const name of entry) {

Callers 15

popNewAssetsMethod · 0.45
constructorMethod · 0.45
addModuleMethod · 0.45
_addModuleMethod · 0.45
buildModuleMethod · 0.45
_buildModuleMethod · 0.45
processDependencyMethod · 0.45
factorizeModuleMethod · 0.45
rebuildModuleMethod · 0.45

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected