-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore: pin TS 3.3 because of performance of 3.4 #338
Conversation
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.
Oh, this is sooo bad from Microsoft side...
Thanks for finding this @havenchyk ! It's amazing! 🚀
Edit: irresponsible... this is the word :)
Successfully deployed demo at https://picasso.toptal.net/revert-ts-3.3 |
❤️ Oh wow @havenchyk you are killer |
3fe9718
to
e9f86ed
Compare
Successfully deployed demo at https://picasso.toptal.net/revert-ts-3.3 |
Update: reverting |
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 finding :)
@@ -128,7 +128,7 @@ | |||
"styled-components": "^4.2.0", | |||
"ts-jest": "^24.0.2", | |||
"ts-loader": "^5.4.5", | |||
"typescript": "^3.4.5", | |||
"typescript": "3.3.4000", |
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.
Can we set alert to remind us to try it again for 3.5 or 3.4.6?
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.
I think we'll receive a PR from @depfu, I'll create a jira ticket as a reminder :)
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.
Successfully deployed demo at https://picasso.toptal.net/revert-ts-3.3 |
🎉 This PR is included in version 1.5.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Successfully deployed demo at https://picasso.toptal.net/revert-ts-3.3 |
Description
There is an issue with TS microsoft/TypeScript#30819 that in conjunction with latest updates of
@types/react
slows down our storybook build.Long read about how that happened
Results after reverting packages on my machine
Caveats
yarn build:storybook
takes a couple of seconds more with@types/react@16.8.14
Be sure we don't use features that work only in
3.4+
TS - https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#typescript-34Next version
3.5
works better, but still has worse performance than3.3
, upgrade should be considered after the releaseHow to test
rm -rf node_modules && yarn && yarn storybook
and check timeReview
- [ ] Annotate allprops
in component with documentation- [ ] Createexamples
for component- [ ] Ensure that visuals specs are green See the documentation