Skip to content

Commit e8e5a2c

Browse files
author
Tajudeen
committed
fix: increase memory limit for tsup build to 12GB
- DTS generation (enabled in tsup.config.js) requires significantly more memory - Increased from 4GB to 12GB to match main build script memory limit - Fixes ERR_WORKER_OUT_OF_MEMORY during TypeScript declaration generation - Applied to both watch mode and build mode
1 parent 3049362 commit e8e5a2c

File tree

1 file changed

+3
-2
lines changed
  • src/vs/workbench/contrib/cortexide/browser/react

1 file changed

+3
-2
lines changed

src/vs/workbench/contrib/cortexide/browser/react/build.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if (isWatch) {
107107
]);
108108

109109
const tsupWatcher = spawn('node', [
110-
'--max-old-space-size=4096',
110+
'--max-old-space-size=12288',
111111
'./node_modules/.bin/tsup',
112112
'--watch'
113113
], {
@@ -152,7 +152,8 @@ if (isWatch) {
152152

153153
// Run tsup once with increased memory limit
154154
// tsup uses esbuild which can be memory-intensive with large bundles
155-
execSync('node --max-old-space-size=4096 ./node_modules/.bin/tsup', { stdio: 'inherit' });
155+
// DTS generation requires significantly more memory (12GB recommended)
156+
execSync('node --max-old-space-size=12288 ./node_modules/.bin/tsup', { stdio: 'inherit' });
156157

157158
console.log('✅ Build complete!');
158159
}

0 commit comments

Comments
 (0)