You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
environment variables override tsconfig behavior (questionable, matter of preference, maybe they should be deprecated instead over some time)
documentation for tsconfig updated accordingly
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.
These settings are global and not per-project. for instance, tsserver uses the same settings, and the server can be handling multiple open projects at the same time. thus, tsconfig is not the correct place to host these configuration options.
alipiry
pushed a commit
to alipiry/TypeScript-Handbook
that referenced
this issue
Jan 5, 2020
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
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: