* 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)
| 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. |
no test coverage detected