Skip to content

Commit d5e7e32

Browse files
fix: issue-webpack-error should not add colors to file string (#825)
Co-authored-by: Piotr Oleś <piotrek.oles@gmail.com>
1 parent c999a13 commit d5e7e32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/issue/issue-webpack-error.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import path from 'path';
22

3-
import chalk from 'chalk';
43
import * as webpack from 'webpack';
54

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

2827
if (issue.location) {
29-
this.file += `:${chalk.green.bold(formatIssueLocation(issue.location))}`;
28+
this.file += `:${formatIssueLocation(issue.location)}`;
3029
}
3130
}
3231

0 commit comments

Comments
 (0)