Search Terms
TSC_NONPOLLING_WATCHER , nonpolling, tsconfig
Suggestion
I'd like to be able to configure tsc polling/nonpolling approach from tsconfig.json, instead of being limited to environment variables.
Acceptance Criteria
This feature should be documented, so people know to use it, as it has true performance advantage for some scenarios, e.g.: in docker, even with delegated volumes, on macOs the tsc watcher by default eats 8-10% of CPU just watching files. With TSC_NONPOLLING_WATCHER
Use Cases
Having a central typescript-based framework, with projects based on it, we would like for the users to be able to easily override polling behavior, due to having different environment or issues arising, while retaining the ability to have non polling behavior as the default.
Examples
{
"compilerOptions": {
"watch": {
"useNonPollingWatcher": true,
"watchFile": "...",
"watchDirectory": "..."
}
}
Checklist
My suggestion meets these guidelines:
Search Terms
TSC_NONPOLLING_WATCHER , nonpolling, tsconfig
Suggestion
I'd like to be able to configure tsc polling/nonpolling approach from tsconfig.json, instead of being limited to environment variables.
Acceptance Criteria
This feature should be documented, so people know to use it, as it has true performance advantage for some scenarios, e.g.: in docker, even with delegated volumes, on macOs the tsc watcher by default eats 8-10% of CPU just watching files. With TSC_NONPOLLING_WATCHER
Use Cases
Having a central typescript-based framework, with projects based on it, we would like for the users to be able to easily override polling behavior, due to having different environment or issues arising, while retaining the ability to have non polling behavior as the default.
Examples
{ "compilerOptions": { "watch": { "useNonPollingWatcher": true, "watchFile": "...", "watchDirectory": "..." } }Checklist
My suggestion meets these guidelines: