(modules)
| 189 | * @returns {SizesOfModules} the sizes of the modules |
| 190 | */ |
| 191 | const getModulesSizes = (modules) => { |
| 192 | /** @type {SizesOfModules} */ |
| 193 | const sizes = Object.create(null); |
| 194 | for (const module of modules) { |
| 195 | for (const type of module.getSourceTypes()) { |
| 196 | sizes[type] = (sizes[type] || 0) + module.size(type); |
| 197 | } |
| 198 | } |
| 199 | return sizes; |
| 200 | }; |
| 201 | |
| 202 | /** |
| 203 | * Checks whether this module hash info is available chunk. |
nothing calls this directly
no test coverage detected