From 655b84f6cbaa32068dcbaaa5ac3d0c49af730735 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 28 Jun 2024 14:42:40 +0800 Subject: [PATCH] fix: fork-ts-checker-webpack-plugin options breaking changes (#588) --- packages/toolpack/src/webpack/config/browser.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/toolpack/src/webpack/config/browser.ts b/packages/toolpack/src/webpack/config/browser.ts index 9a4362738..a10f476d4 100644 --- a/packages/toolpack/src/webpack/config/browser.ts +++ b/packages/toolpack/src/webpack/config/browser.ts @@ -2,6 +2,7 @@ import * as crypto from 'crypto'; import webpack from 'webpack'; import * as path from 'path'; import { resolve } from '@shuvi/utils/resolve'; +import type { ForkTsCheckerWebpackPluginOptions } from 'fork-ts-checker-webpack-plugin/lib/plugin-options'; import { WebpackChain, baseWebpackChain, BaseOptions } from './base'; import { withStyle } from './parts/style'; import { @@ -67,12 +68,11 @@ export function createBrowserWebpackChain(options: BaseOptions): WebpackChain { }, async: dev, logger: { - infrastructure: 'silent', - issues: 'silent', - devServer: false + log: message => console.log(message), + error: message => console.error(message) }, formatter: 'codeframe' - } + } as ForkTsCheckerWebpackPluginOptions ]); }