Skip to content

Commit

Permalink
fix: issue-webpack-error should not add colors to file string (#825)
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Oleś <piotrek.oles@gmail.com>
  • Loading branch information
sreucherand and piotr-oles committed Oct 29, 2023
1 parent c999a13 commit d5e7e32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/issue/issue-webpack-error.ts
@@ -1,6 +1,5 @@
import path from 'path';

import chalk from 'chalk';
import * as webpack from 'webpack';

import type { FormatterPathType } from '../formatter';
Expand All @@ -26,7 +25,7 @@ class IssueWebpackError extends webpack.WebpackError {
: relativeToContext(issue.file, process.cwd());

if (issue.location) {
this.file += `:${chalk.green.bold(formatIssueLocation(issue.location))}`;
this.file += `:${formatIssueLocation(issue.location)}`;
}
}

Expand Down

0 comments on commit d5e7e32

Please sign in to comment.