-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Updates SDK tsconfig to enable the incremental
#1931
Conversation
Signed-off-by: Mihovil Ilakovac <[email protected]>
Signed-off-by: Mihovil Ilakovac <[email protected]>
@@ -96,7 +96,8 @@ runGoldenTest goldenTest = do | |||
"dev.db-journal", | |||
"package-lock.json", | |||
".gitignore", | |||
".DS_Store" | |||
".DS_Store", | |||
"tsconfig.tsbuildinfo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a internal file written by TSC when using the incremental
option. There is no need to keep track of the changes to that file IMHO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As good looking to me as it gets 😄
@@ -28,6 +28,7 @@ | |||
// about missing types e.g. when using `toBeInTheDocument` and other matchers. | |||
"@testing-library/jest-dom" | |||
], | |||
"incremental": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great find!
Wondering why this isn't the default option 🤔
Signed-off-by: Mihovil Ilakovac <[email protected]>
Signed-off-by: Mihovil Ilakovac <[email protected]>
We had an issue with Vite hot module reload (HMR) not working properly: the HRM would happen, React would keep the state and it seemed good. But then the SDK would be rebuilt, trigger full-page reload, losing the React state. This completely defeats the purpose of HMR!
Adding
incremental: true
helps with Vite HMR working properly. The SDK wouldn't be rebuilt unless necessary and wouldn't trigger full-page related ✅This also has some nice side-effects:
Closes #1829