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

fix: refactor watch code for tsconfig changes to use watchChange hook #17304

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dominikg
Copy link
Contributor

the refactored code had a change that caused every .json file change to trigger a full reload, this has been corrected.

For now multiple servers can still share one cache instance as the cache only contains information about tsconfig files that do not differ across environments.

Ultimately we want to have a more fine-grained invalidation when a tsconfig changes, but we would have to find out tsconfigs affected by this change (referenced from or extended by, as well as ancestors and then find all modules transpiled with any of these...)

TL;DR this is very complicated

changes to tsconfig.json should be rare enough that a full reload doesn't hurt too much.

Description

Copy link

stackblitz bot commented May 24, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@dominikg
Copy link
Contributor Author

see here for an alternative approach: #17317

Base automatically changed from v6/environment-api to main September 4, 2024 09:27
@sapphi-red sapphi-red force-pushed the v6/env-fix-tsconfck branch 2 times, most recently from e503166 to 83b27a5 Compare October 3, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants