* Returns a string representation. * @param {StatsValue=} options stats options * @returns {string} string output
(options)
| 77 | * @returns {string} string output |
| 78 | */ |
| 79 | toString(options) { |
| 80 | const normalizedOptions = this.compilation.createStatsOptions(options, { |
| 81 | forToString: true |
| 82 | }); |
| 83 | |
| 84 | const statsFactory = this.compilation.createStatsFactory(normalizedOptions); |
| 85 | const statsPrinter = this.compilation.createStatsPrinter(normalizedOptions); |
| 86 | |
| 87 | const data = statsFactory.create(class="st">"compilation", this.compilation, { |
| 88 | compilation: this.compilation |
| 89 | }); |
| 90 | const result = statsPrinter.print(class="st">"compilation", data); |
| 91 | return result === undefined ? class="st">"" : result; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | module.exports = Stats; |
no test coverage detected