From e2a9f2deadbc143c77b5bdf3a8c12f1d2cd76abb Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Tue, 12 Aug 2025 18:55:38 +0200 Subject: [PATCH] chore: Increase memory limit on webpack ts checker plugin (#34653) --- superset-frontend/webpack.config.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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')];