Skip to content
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

Watcher continues to watch files after removal as dependency (dead imports) #568

Open
4 of 6 tasks
U-4-E-A opened this issue Jun 3, 2024 · 0 comments
Open
4 of 6 tasks
Labels
breaking change bug Something isn't working watch

Comments

@U-4-E-A
Copy link

U-4-E-A commented Jun 3, 2024

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I am reporting a confirmed bug (not seek debugging help)
  • I understand this is a collaborative project and relies on my contributions
  • I read and understood the Contribution guide

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

  • I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

  • I'm willing to offer financial support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change bug Something isn't working watch
Projects
None yet
Development

No branches or pull requests

2 participants