MCPcopy
hub / github.com/webpack/webpack / sourceBlock

Method sourceBlock

lib/html/HtmlGenerator.js:304–324  ·  view source on GitHub ↗

* Processes the provided dependencies block. * @param {NormalModule} module the module to generate * @param {import("../DependenciesBlock")} block the dependencies block which will be processed * @param {InitFragment<GenerateContext>[]} initFragments mutable list of init fragments * @param {

(module, block, initFragments, source, generateContext)

Source from the content-addressed store, hash-verified

302 * @returns {void}
303 */
304 sourceBlock(module, block, initFragments, source, generateContext) {
305 for (const dependency of block.dependencies) {
306 this.sourceDependency(
307 module,
308 dependency,
309 initFragments,
310 source,
311 generateContext
312 );
313 }
314
315 for (const childBlock of block.blocks) {
316 this.sourceBlock(
317 module,
318 childBlock,
319 initFragments,
320 source,
321 generateContext
322 );
323 }
324 }
325
326 /**
327 * Processes the provided module.

Callers 1

sourceModuleMethod · 0.95

Calls 1

sourceDependencyMethod · 0.95

Tested by

no test coverage detected