code: function extractError (e) {
    return {
      message: e.message,
      file: getFile(e),
      origin: getOrigin(e),
      name: e.name,
      severity: 0,
      webpackError: e,
      originalStack: getOriginalErrorStack(e)
    };
  }
docs: /*
  This logic is mostly duplicated from webpack/lib/Stats.js#toJson()
  See: https://github.com/webpack/webpack/blob/2f618e733aab4755deb42e9d8e859609005607c0/lib/Stats.js#L89