diff --git a/lib/compiler.js b/lib/compiler.js index 702a7e5..1c1509c 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -23,7 +23,7 @@ function runTypeScriptCompiler(logger, projectDir, options) { throw Error('No tsconfig.json file found in project.'); } - var nodeArgs = [tscPath, '--project', projectDir]; + var nodeArgs = ['--max_old_space_size=2048', tscPath, '--project', projectDir]; if (options.watch) { nodeArgs.push('--watch'); }