MCPcopy
hub / github.com/webpack/webpack / toJson

Method toJson

lib/Stats.js:62–72  ·  view source on GitHub ↗

* Returns json output. * @param {StatsValue=} options stats options * @returns {StatsCompilation} json output

(options)

Source from the content-addressed store, hash-verified

60 * @returns {StatsCompilation} json output
61 */
62 toJson(options) {
63 const normalizedOptions = this.compilation.createStatsOptions(options, {
64 forToString: false
65 });
66
67 const statsFactory = this.compilation.createStatsFactory(normalizedOptions);
68
69 return statsFactory.create("compilation", this.compilation, {
70 compilation: this.compilation
71 });
72 }
73
74 /**
75 * Returns a string representation.

Callers 15

buildBatchFunction · 0.45
runCompilerFunction · 0.45
describeCasesFunction · 0.45
onCompiledFunction · 0.45
onCompiledFunction · 0.45
runCompilerFunction · 0.45
buildBatchFunction · 0.45
MultiStats.test.jsFile · 0.45
compileFunction · 0.45
Compiler.test.jsFile · 0.45
compileFunction · 0.45

Calls 3

createStatsOptionsMethod · 0.80
createStatsFactoryMethod · 0.80
createMethod · 0.45

Tested by 5

runCompilerFunction · 0.36
compileFunction · 0.36
compileFunction · 0.36
callbackFunction · 0.36
runCompilerFunction · 0.36