MCPcopy
hub / github.com/webpack/webpack-dev-server / getStats

Method getStats

lib/Server.js:1877–1891  ·  view source on GitHub ↗

* @private * @param {Stats | MultiStats} statsObj stats * @returns {StatsCompilation} stats of compilation

(statsObj)

Source from the content-addressed store, hash-verified

1875 * @returns {StatsCompilation} stats of compilation
1876 */
1877 getStats(statsObj) {
1878 const stats = Server.DEFAULT_STATS;
1879 const compilerOptions = this.getCompilerOptions();
1880
1881 if (
1882 compilerOptions.stats &&
1883 /** @type {StatsOptions} */ (compilerOptions.stats).warningsFilter
1884 ) {
1885 stats.warningsFilter =
1886 /** @type {StatsOptions} */
1887 (compilerOptions.stats).warningsFilter;
1888 }
1889
1890 return statsObj.toJson(stats);
1891 }
1892
1893 /**
1894 * @private

Callers 2

setupHooksMethod · 0.95
createWebSocketServerMethod · 0.95

Calls 1

getCompilerOptionsMethod · 0.95

Tested by

no test coverage detected