diff --git a/packages/cli/package.json b/packages/cli/package.json index 279914f9a..2563865ed 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -64,7 +64,7 @@ "envinfo": "^7.8.1", "esm": "^3.2.25", "file-loader": "^6.2.0", - "fork-ts-checker-webpack-plugin": "^4.0.4", + "fork-ts-checker-webpack-plugin": "^6.5.3", "get-port": "^5.0.0", "gittar": "^0.1.0", "glob": "^8.0.3", diff --git a/packages/cli/src/lib/webpack/webpack-base-config.js b/packages/cli/src/lib/webpack/webpack-base-config.js index 31f95e4e1..56661f287 100644 --- a/packages/cli/src/lib/webpack/webpack-base-config.js +++ b/packages/cli/src/lib/webpack/webpack-base-config.js @@ -357,12 +357,10 @@ module.exports = function createBaseConfig(env) { }), ...(tsconfig ? [ - new ForkTsCheckerWebpackPlugin({ - checkSyntacticErrors: true, - async: !isProd, - tsconfig: tsconfig, - silent: !isWatch, - }), + new ForkTsCheckerWebpackPlugin({ + typescript: {configFile: tsconfig, diagnosticOptions: {semantic: true, syntactic: true} }, + async: !isProd + }), ] : []), ...(isProd diff --git a/packages/cli/src/lib/webpack/webpack-client-config.js b/packages/cli/src/lib/webpack/webpack-client-config.js index d94b346c1..6e26c3e36 100644 --- a/packages/cli/src/lib/webpack/webpack-client-config.js +++ b/packages/cli/src/lib/webpack/webpack-client-config.js @@ -170,7 +170,7 @@ function getBabelEsmPlugin(env) { new BabelEsmPlugin({ filename: env.isProd ? '[name].[chunkhash:5].esm.js' : '[name].esm.js', chunkFilename: '[name].chunk.[chunkhash:5].esm.js', - excludedPlugins: ['BabelEsmPlugin', 'InjectManifest'], + excludedPlugins: ['BabelEsmPlugin', 'InjectManifest', 'ForkTsCheckerWebpackPlugin'], beforeStartExecution: plugins => { plugins.forEach(plugin => { if (