MCPcopy
hub / github.com/webpack/webpack / toString

Method toString

lib/Stats.js:79–92  ·  lib/Stats.js::Stats.toString

* Returns a string representation. * @param {StatsValue=} options stats options * @returns {string} string output

(options)

Source from the content-addressed store, hash-verified

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
95module.exports = Stats;

Callers 15

transformToCodeFunction · 0.45
toCacheVersionFunction · 0.45
_getManagedItemInfoMethod · 0.45
asStringFunction · 0.45
parseFunction · 0.45
_loadFileMethod · 0.45
handlerMethod · 0.45
getModuleGraphHashMethod · 0.45
addModuleToHashMethod · 0.45
addModulesToHashMethod · 0.45

Calls 5

createStatsOptionsMethod · 0.80
createStatsFactoryMethod · 0.80
createStatsPrinterMethod · 0.80
printMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected