-
Notifications
You must be signed in to change notification settings - Fork 27k
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 Polyfill (For Wechat) #453
Comments
@hayeah We already adding the polyfill for that. |
I'm testing with Firefox 28 which doesn't have "presets": [
"es2015",
"stage-0",
"next/babel",
"react"
], am I missing something? |
@xdamman could you open a new issue and a possible sample app to re-produce this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
WeChat is a popular chat app in China. On Android it embeds Tecent's custom Webkit browser "X5". This browser requires polyfill for
Object.assign
.Maybe it would be nice to have a more declarative way to add polyfills. Right now I used
next.conig.js
to modify the main.js entry:Where
polyfill.js
is the following (note that the feature detection has to use string concat to prevent babel from transforming it to its ownassign
):The text was updated successfully, but these errors were encountered: