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

Method sourceBlock

lib/javascript/JavascriptGenerator.js:194–214  ·  view source on GitHub ↗

* Processes the provided module. * @param {Module} module the module to generate * @param {DependenciesBlock} block the dependencies block which will be processed * @param {InitFragment<GenerateContext>[]} initFragments mutable list of init fragments * @param {ReplaceSource} source the curre

(module, block, initFragments, source, generateContext)

Source from the content-addressed store, hash-verified

192 * @returns {void}
193 */
194 sourceBlock(module, block, initFragments, source, generateContext) {
195 for (const dependency of block.dependencies) {
196 this.sourceDependency(
197 module,
198 dependency,
199 initFragments,
200 source,
201 generateContext
202 );
203 }
204
205 for (const childBlock of block.blocks) {
206 this.sourceBlock(
207 module,
208 childBlock,
209 initFragments,
210 source,
211 generateContext
212 );
213 }
214 }
215
216 /**
217 * Processes the provided module.

Callers 1

sourceModuleMethod · 0.95

Calls 1

sourceDependencyMethod · 0.95

Tested by

no test coverage detected