chore: Increase memory limit on webpack ts checker plugin (#34653)

This commit is contained in:
Kamil Gabryjelski
2025-08-12 18:55:38 +02:00
committed by GitHub
parent 1f80725b0e
commit e2a9f2dead

View File

@@ -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')];