Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

fix(checker): pass through execArgv to checker child process #479

Merged
merged 1 commit into from
Aug 10, 2017
Merged

fix(checker): pass through execArgv to checker child process #479

merged 1 commit into from
Aug 10, 2017

Conversation

kryops
Copy link
Contributor

@kryops kryops commented Aug 10, 2017

This allows passing command-line options other than --debug and --inspect through to the type checker child process, e.g. --max-old-space-size to increase the available memory.

We are currently experiencing out-of-memory errors with TypeScript 2.4 and some complex types that we depend on. While we are working on fixing the typings to reduce memory consumption, we wanted to use the --max-old-space-size option as a workaround to increase the available memory for the Node.js process. We noticed however that this option is not being passed through to the type checker child process which is created by awesome-typescript-loader, only --debug or --inspect are passed.

This PR keeps the special treatment for --debug and --inspect, but passes all other options through to the created child process.

This allows passing command-line options other than --debug and --inspect through to the type checker child process, e.g. --max-old-space-size to increase the available memory
@s-panferov s-panferov merged commit 5c7b0de into s-panferov:master Aug 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants