-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsc --build --watch emitting unchanged files to disk #47309
Comments
This is not necessarily unexpected behavior for |
For what it's worth, I've proposed a possible mitigation in #46677. But it's hard to say without a full repro. |
Project structure is as follows: packages tsc |
We got our scenario working by not using tsc at all (just using tsc --noEmit for compilation errors) and instead letting Metro/Babel transform ts files to js during dev. We also had to move to consuming TS files directly (earlier we were sending JS files to metro) |
Sorry that you had to find mitigations for this. I believe that this is fixed now (since #46677 is fixed). If you still run into this in other projects, you can now try a nightly version of TypeScript and see if things are improved at all. |
Bug Report
Similar to #29927
🔎 Search Terms
tsc --watch writing to disk too often
🕗 Version & Regression Information
Occurring in TS 3.9.5 (and also tried on TS 4.5, although we did get TS2571 errors in our code while using TS4.5.
We are using TS in a React-Native project. This issue is causing longer times to hot reload in RN.
tsconfig:
🙁 Actual behavior
On changing a single TS file, multiple JS files are written to disk. Can confirm that they need to be actually changed.
🙂 Expected behavior
Only the single (or files that actually need to be changed) should be written to disk.
The text was updated successfully, but these errors were encountered: