{"size": 298, "ext": "js", "max_stars_repo_path": "src/node/create-webpack-stats-error.js", "max_stars_repo_name": "schnjaso2/batfish", "max_stars_repo_stars_event_min_datetime": "2017-06-06T16:43:08.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-21T02:04:08.000Z", "max_issues_repo_path": "src/node/create-webpack-stats-error.js", "max_issues_repo_name": "schnjaso2/batfish", "max_issues_repo_issues_event_min_datetime": "2017-06-06T16:44:39.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-15T15:20:48.000Z", "max_forks_repo_path": "src/node/create-webpack-stats-error.js", "max_forks_repo_name": "schnjaso2/batfish", "max_forks_repo_forks_event_min_datetime": "2017-10-10T01:37:12.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-04T20:26:56.000Z"}
{"max_stars_count": 125, "max_issues_count": 231, "max_forks_count": 17, "avg_line_length": 19.8666666667, "max_line_length": 57, "alphanum_fraction": 0.7516778523}
// @flow
'use strict';

const errorTypes = require('./error-types');

function createWebpackStatsError(
  stats: webpack$Stats
): WebpackCompilationError {
  const error = new errorTypes.WebpackCompilationError();
  error.stats = stats;
  return error;
}

module.exports = createWebpackStatsError;
