diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js index f315c11451e..21ca09bfaa0 100644 --- a/superset-frontend/webpack.config.js +++ b/superset-frontend/webpack.config.js @@ -157,7 +157,22 @@ if (!isDevMode) { ); // Runs type checking on a separate process to speed up the build - plugins.push(new ForkTsCheckerWebpackPlugin()); + plugins.push( + new ForkTsCheckerWebpackPlugin({ + typescript: { + memoryLimit: 4096, + build: true, + exclude: [ + '**/node_modules/**', + '**/dist/**', + '**/coverage/**', + '**/storybook/**', + '**/*.stories.{ts,tsx,js,jsx}', + '**/*.{test,spec}.{ts,tsx,js,jsx}', + ], + }, + }), + ); } const PREAMBLE = [path.join(APP_DIR, '/src/preamble.ts')];