From 3fc104c1474040edee4fcaafdfdb08997a98353d Mon Sep 17 00:00:00 2001 From: "Hung-Han (Henry) Chen" Date: Thu, 20 May 2021 16:35:43 +0300 Subject: [PATCH] Possible to disable ts checker (most editor already has it) Signed-off-by: Hung-Han (Henry) Chen --- webpack.main.ts | 2 +- webpack.renderer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.main.ts b/webpack.main.ts index a35a60f25d..f0bc38b72b 100755 --- a/webpack.main.ts +++ b/webpack.main.ts @@ -61,7 +61,7 @@ export default function (): webpack.Configuration { }, plugins: [ new ProgressBarPlugin(), - new ForkTsCheckerPlugin(), + process.env.LENS_DEV_DISABLE_TS_CHECKER === "true" ? undefined : new ForkTsCheckerPlugin(), ].filter(Boolean) }; } diff --git a/webpack.renderer.ts b/webpack.renderer.ts index 88f7203bf7..13bcc6135c 100755 --- a/webpack.renderer.ts +++ b/webpack.renderer.ts @@ -139,7 +139,7 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura plugins: [ new ProgressBarPlugin(), - new ForkTsCheckerPlugin(), + process.env.LENS_DEV_DISABLE_TS_CHECKER === "true" ? undefined : new ForkTsCheckerPlugin(), // todo: fix remain warnings about circular dependencies // new CircularDependencyPlugin({