MCPcopy
hub / github.com/webpack/webpack / push

Function push

lib/dependencies/HtmlEntryDependency.js:197–202  ·  view source on GitHub ↗
(/** @type {Chunk | null | undefined} */ chunk)

Source from the content-addressed store, hash-verified

195 /** @type {Set<Chunk>} */
196 const seen = new Set();
197 const push = (/** @type {Chunk | null | undefined} */ chunk) => {
198 if (!chunk || seen.has(chunk) || chunk === entryChunk) return;
199 if (chunksLoadedByAncestorTags.has(chunk)) return;
200 seen.add(chunk);
201 ordered.push(chunk);
202 };
203 if (runtimeChunk !== entryChunk) {
204 push(runtimeChunk);
205 }

Callers 1

Calls 3

hasMethod · 0.45
addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected