Skip to content

Commit fcd3cde

Browse files
author
Tsvetan Raikov
committed
Fixed tsc --watch out of memory issue when running on large projects
1 parent 6ab0ab0 commit fcd3cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function runTypeScriptCompiler(logger, projectDir, options) {
2323
throw Error('No tsconfig.json file found in project.');
2424
}
2525

26-
var nodeArgs = [tscPath, '--project', projectDir];
26+
var nodeArgs = ['--max_old_space_size=2048', tscPath, '--project', projectDir];
2727
if (options.watch) {
2828
nodeArgs.push('--watch');
2929
}

0 commit comments

Comments
 (0)