| 5503 | } |
| 5504 | |
| 5505 | createModuleAssets() { |
| 5506 | const { chunkGraph } = this; |
| 5507 | for (const module of this.modules) { |
| 5508 | const buildInfo = /** @type {BuildInfo} */ (module.buildInfo); |
| 5509 | if (buildInfo.assets) { |
| 5510 | const assetsInfo = buildInfo.assetsInfo; |
| 5511 | for (const assetName of Object.keys(buildInfo.assets)) { |
| 5512 | const fileName = this.getPath(assetName, { |
| 5513 | chunkGraph: this.chunkGraph, |
| 5514 | module |
| 5515 | }); |
| 5516 | for (const chunk of chunkGraph.getModuleChunksIterable(module)) { |
| 5517 | chunk.auxiliaryFiles.add(fileName); |
| 5518 | } |
| 5519 | this.emitAsset( |
| 5520 | fileName, |
| 5521 | buildInfo.assets[assetName], |
| 5522 | assetsInfo ? assetsInfo.get(assetName) : undefined |
| 5523 | ); |
| 5524 | this.hooks.moduleAsset.call(module, fileName); |
| 5525 | } |
| 5526 | } |
| 5527 | } |
| 5528 | } |
| 5529 | |
| 5530 | /** |
| 5531 | * Gets render manifest. |