MCPcopy
hub / github.com/webpack/webpack / sourceModule

Method sourceModule

lib/css/CssGenerator.js:258–280  ·  view source on GitHub ↗

* Processes the provided module. * @param {NormalModule} module the module to generate * @param {InitFragment<GenerateContext>[]} initFragments mutable list of init fragments * @param {ReplaceSource} source the current replace source which can be modified * @param {GenerateContext & { cssDat

(module, initFragments, source, generateContext)

Source from the content-addressed store, hash-verified

256 * @returns {void}
257 */
258 sourceModule(module, initFragments, source, generateContext) {
259 for (const dependency of module.dependencies) {
260 this.sourceDependency(
261 module,
262 dependency,
263 initFragments,
264 source,
265 generateContext
266 );
267 }
268
269 if (module.presentationalDependencies !== undefined) {
270 for (const dependency of module.presentationalDependencies) {
271 this.sourceDependency(
272 module,
273 dependency,
274 initFragments,
275 source,
276 generateContext
277 );
278 }
279 }
280 }
281
282 /**
283 * Generates generated code for this runtime module.

Callers 1

generateMethod · 0.95

Calls 1

sourceDependencyMethod · 0.95

Tested by

no test coverage detected