Skip to content

Commit 01bb44e

Browse files
authored
Merge pull request #17 from NativeScript/raikov/fix-tsc-watch-out-of-memory
Fixed tsc --watch out of memory issue when running on large projects
2 parents 6ab0ab0 + fcd3cde commit 01bb44e

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)