(sizes)
| 440 | * @returns {Size} the total size |
| 441 | */ |
| 442 | const totalSize = (sizes) => { |
| 443 | let size = 0; |
| 444 | for (const key of /** @type {SourceType[]} */ (Object.keys(sizes))) { |
| 445 | size += sizes[key]; |
| 446 | } |
| 447 | return size; |
| 448 | }; |
| 449 | |
| 450 | /** |
| 451 | * Returns a function to get the name of the chunk. |