* Returns the estimated size for the requested source type. * @param {string=} type the source type for which the size should be estimated * @returns {number} the estimated size of the module (must be non-zero)
(type)
| 1086 | * @returns {number} the estimated size of the module (must be non-zero) |
| 1087 | */ |
| 1088 | size(type) { |
| 1089 | // Guess size from embedded modules |
| 1090 | let size = 0; |
| 1091 | for (const module of this._modules) { |
| 1092 | size += module.size(type); |
| 1093 | } |
| 1094 | return size; |
| 1095 | } |
| 1096 | |
| 1097 | /** |
| 1098 | * @private |
no outgoing calls
no test coverage detected