Skip to content

Commit cb53fb9

Browse files
filipesilvaBrocco
authored andcommitted
fix(@ngtools/webpack): remove default type checker memory limit
Seems to be causing trouble on Appveyor and we use the parent one anyway.
1 parent 74d4049 commit cb53fb9

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/@ngtools/webpack/src/angular_compiler_plugin.ts

-12
Original file line numberDiff line numberDiff line change
@@ -464,26 +464,14 @@ export class AngularCompilerPlugin implements Tapable {
464464
? './type_checker_bootstrap.js'
465465
: './type_checker.js';
466466

467-
let hasMemoryFlag = false;
468-
const memoryFlagRegex = /--max-old-space-size/;
469467
const debugArgRegex = /--inspect(?:-brk|-port)?|--debug(?:-brk|-port)/;
470468

471469
const execArgv = process.execArgv.filter((arg) => {
472-
// Check if memory is being set by parent process.
473-
if (memoryFlagRegex.test(arg)) {
474-
hasMemoryFlag = true;
475-
}
476-
477470
// Remove debug args.
478471
// Workaround for https://github.com/nodejs/node/issues/9435
479472
return !debugArgRegex.test(arg);
480473
});
481474

482-
if (!hasMemoryFlag) {
483-
// Force max 8gb ram.
484-
execArgv.push('--max-old-space-size=8192');
485-
}
486-
487475
const forkOptions: ForkOptions = { execArgv };
488476

489477
this._typeCheckerProcess = fork(path.resolve(__dirname, typeCheckerFile), [], forkOptions);

0 commit comments

Comments
 (0)