-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix .includes issue once and for all #3693
Comments
The simple way would be to add a dependency to Node 4 already supports several ES6 features (compatibility table). I think it would be better to add a dependency to
|
@Volune, would you send a PR for that please? |
I also think that |
Makes sense.
On top of that we need to make jest run without polyfills, these issues
should be caught by CI
…On 22 June 2017 at 22:19, kaylieEB ***@***.***> wrote:
I also think that babel-polyfill is quite heavy, if you want to fix just
.includes issue, then we should use airbnb's .includes polyfill
https://www.npmjs.com/package/array-includes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3693 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACBdWFXEfnqgT1vr_YKiOSY84G9tUbl_ks5sG0rcgaJpZM4OBv9s>
.
|
Go ahead, thanks
…On Thu, Jun 22, 2017 at 10:41 PM kaylieEB ***@***.***> wrote:
hm, looking at babelrc
<https://github.com/yarnpkg/yarn/blob/c844df7236ec122ca6b803b9f2943352c9b09a7e/.babelrc>
it looks like jest already runs without the polyfill? I actually think we
just need to add a plugin
<https://www.npmjs.com/package/babel-plugin-array-includes>
to the pre-node setting. Happy to send a PR.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3693 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACBdWGk_dYQ_ucADdelxyOmytAogJQOuks5sG1AcgaJpZM4OBv9s>
.
|
Thanks! #3705 |
I think we should have a look at babel-preset-env to fix all similar potential issues at once. |
@bestander here, #3652, I upgraded babel and used babel-preset-env.. If you want I can move some commits and arrange a pull request for the next week. This is propedeutic for the new release of Jest too. |
Thanks for chiming in @voxsim. A few points.
|
@voxsim I agree we should move to |
@kaylieEB @bestander I opened a pull request with an experiment that seems to work O.o I am using babel-polyfill and babel-preset-env, please let me know if you like it :) |
❤️ |
@bestander - I think we can close this issue now? Since Node 4 is an LTS and will be maintained until April 2018, I'd say we should support it. At least until 1.0 is out. I think the polyfill is a bit heavy handed and now CI should catch the issues so no further action needed? |
Up to you, @BYK. |
Do you want to request a feature or report a bug?
Node 4 compat issue
What is the current behavior?
.includes
in-legacy.js
builds.The text was updated successfully, but these errors were encountered: