When an import is added to a watched file, the file from which the import comes is added to the watch. However, upon removal of the import, the file the import came from continues to be watched, causing false reloads.
Bugs are expected to be fixed by those affected by it
[ ] I'm interested in working on this issue
Compensating engineering work financially will speed up resolution
Acknowledgements
Minimal reproduction URL
https://stackblitz.com/~/github.com/U-4-E-A/tsx-dead-import-test?file=src/server.ts
Problem & expected behavior (under 200 words)
v4.11.2 Node: v21.6.2
When an import is added to a watched file, the file from which the import comes is added to the watch. However, upon removal of the import, the file the import came from continues to be watched, causing false reloads.
Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution