Skip to content

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

@bolt-new-by-stackblitz
Copy link

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
@sapphi-red sapphi-red force-pushed the v6/env-fix-tsconfck branch from 83b27a5 to ee6f9c8 Compare October 3, 2024 07:10
@patak-dev
Copy link
Member

closing as we merged #17317

@patak-dev patak-dev closed this Feb 7, 2025
@patak-dev patak-dev deleted the v6/env-fix-tsconfck branch March 31, 2025 08:56
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.

4 participants