From d5e7e32e95666b5f5ee18d96f3f053ed36ea12f0 Mon Sep 17 00:00:00 2001 From: Sylvain Reucherand Date: Sun, 29 Oct 2023 20:57:21 +0100 Subject: [PATCH] fix: issue-webpack-error should not add colors to file string (#825) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Piotr OleÅ› --- src/issue/issue-webpack-error.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/issue/issue-webpack-error.ts b/src/issue/issue-webpack-error.ts index 13b6bf2c..839a0d31 100644 --- a/src/issue/issue-webpack-error.ts +++ b/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'; @@ -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)}`; } }