| | |
| | | /** @typedef {ModuleId[]} ModuleIds */ |
| | | |
| | | /** |
| | | * Returns runtime code. |
| | | * @param {ChunkGraph} chunkGraph chunkGraph |
| | | * @param {RuntimeTemplate} runtimeTemplate runtimeTemplate |
| | | * @param {EntryModuleWithChunkGroup[]} entries entries |
| | |
| | | ]; |
| | | |
| | | /** |
| | | * Returns fn to execute. |
| | | * @param {ModuleId} id id |
| | | * @returns {string} fn to execute |
| | | */ |
| | | const runModule = (id) => `__webpack_exec__(${JSON.stringify(id)})`; |
| | | /** |
| | | * Output combination. |
| | | * @param {Chunks} chunks chunks |
| | | * @param {ModuleIds} moduleIds module ids |
| | | * @param {boolean=} final true when final, otherwise false |
| | |
| | | }; |
| | | |
| | | /** |
| | | * Returns initially fulfilled chunk ids. |
| | | * @param {Chunk} chunk the chunk |
| | | * @param {ChunkGraph} chunkGraph the chunk graph |
| | | * @param {(chunk: Chunk, chunkGraph: ChunkGraph) => boolean} filterFn filter function |
| | |
| | | }; |
| | | |
| | | /** |
| | | * Processes the provided hash. |
| | | * @param {Hash} hash the hash to update |
| | | * @param {ChunkGraph} chunkGraph chunkGraph |
| | | * @param {EntryModuleWithChunkGroup[]} entries entries |