-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Object.assign et al are not polyfilled #398
Comments
I probably wouldn’t turn on the whole However So we’ll probably just do that. |
Hi @gaearon, Cheers, |
I get exactly the same problem as mnemanja. Version Info: |
Note: adding this to index.html seems to resolve the create-react-app bug with ie11, but this doesn't feel like a good solution: |
Can you please open a new issue? It's hard to track in old, closed issues. |
Timer, here you go: #3034 |
Hi all,
Thanks for your wonderful work on this.
When testing a React app using
create-react-app
on a old version of mobile Safari I noticed thatObject.assign
was failing.I looked and saw that polyfill support is turned off on the configuration of
babel-plugin-transform-runtime
https://github.com/facebookincubator/create-react-app/blob/master/config/babel.prod.js#L33-L37I worked around this by, for the moment, slightly inefficiently manually adding
babel-polyfill
and using the more "traditional"import 'babel-polyfill';
at the root of the application to includecore-js
polyfills.Seems that if the goal is zero configuration setup this is going to be a gotcha for more than a few folks. Unsure if the best approach is to simply turn on the polyfill in
babel-plugin-transform-runtime
as the documentation seems to suggest this is not the intent of this transformation to supplement native methods likeObject.assign
.The text was updated successfully, but these errors were encountered: