Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove ES3-specific transforms #12716
Conversation
gaearon
requested review from
sophiebits
and
sebmarkbage
Apr 28, 2018
facebook-github-bot
added
the
CLA Signed
label
Apr 28, 2018
This comment has been minimized.
This comment has been minimized.
pull-bot
commented
Apr 28, 2018
|
ReactDOM: size: -0.4%, gzip: -0.2% Details of bundled changes.Comparing: 045d4f1...52209cc react-dom
react-art
react-test-renderer
react-reconciler
react-native-renderer
Generated by |
trueadm
approved these changes
Apr 30, 2018
|
This looks good to me, if our concern is the name |
This comment has been minimized.
This comment has been minimized.
|
I don't think it's the name specifically that's the issue—just the fact that it turns dot-access into quotes because of legacy browsers we don't care about anymore. |
This comment has been minimized.
This comment has been minimized.
|
The goal of this change isn't to fix that specifically, it's just that these transforms aren't useful now and can be removed. |
gaearon
merged commit 9a9f547
into
facebook:master
Apr 30, 2018
1 check passed
gaearon
deleted the
gaearon:no-es3
branch
Apr 30, 2018
This comment has been minimized.
This comment has been minimized.
|
Should https://github.com/facebook/react/blob/master/package.json#L34 |
This comment has been minimized.
This comment has been minimized.
|
Oh yeah, send a PR please? |
gaearon commentedApr 28, 2018
•
edited
We stopped supporting IE8 a long time ago.
As far as I can tell all other major browsers support reserved property names.
By dropping these transforms we ensure the bundles contain
fiber.returnrather thanfiber["return"]which I'm worried might deopt.I've seen
["return"]being "hot" in some line-by-line Chrome traces before.