-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[RFC] Support only last n browser versions #15496
Comments
This looks good to me, the market share we lose is probably very little and the benefits look to outweigh the very little cost 👍 |
@eps1lon We are lucky IE 11 and Chrome 41 supports almost the same JavaScript features. I would suspect it's the reason why Google Bot uses Chrome 41.
If my assumption is correct, we will be able to drop Chrome 41 and IE 11 at the same time. But it's only speculation. I have asked Why? on Twitter. It seems Google plans to upgrade it.
This probably why the classes to hooks migration are reducing our bundle size that much. We do no longer have to transpile the JavaScript class syntax. Does this issue target v5? |
Yes. I don't think we should change browser support on such a short notice. Even if it is only for "exotic" browsers (edge 14 isn't even available in browserstack). The bundle wouldn't benefit from it anyway since we still transpile for IE 11. |
https://webmasters.googleblog.com/2019/05/the-new-evergreen-googlebot.html |
Something I haven't really thought about is our
we should be able to safely apply these changes to that build. I started experimenting with it in #15629 |
Current state
We transpile for the following targets:
Proposal
We use every major release to update the list to include only the last 31 versions and use this snapshot throughout the lifetime of the release. For v4 this would mean
1 Somewhat arbitrary. Used the default "last 2 versions" from browserslist and relaxed it by 1.
Rationale
transform-destructuring
accounts for around 2-3% of our bundle./cc @mui-org/community-partners @mui-org/core-contributors
The text was updated successfully, but these errors were encountered: