const { warnings = [], errors = [] } = stats.toJson({ warnings: true, errors: true });