Skip to content
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

Target node 8; remove regeneratorRuntime dependency #5

Merged
merged 2 commits into from
Mar 19, 2020

Conversation

benogle
Copy link
Contributor

@benogle benogle commented Feb 11, 2020

This change makes babel target node 8. Node 8 has async / await support enabled by default and does not need babel's polyfill / regeneratorRuntime.

This will likely not work with node < 8. Versions < 8 seem to have a small percentage of usage

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Closes #4

@benogle benogle requested a review from ralbayaty February 11, 2020 17:11
"@babel/preset-env",
{
"targets": {
"node": "8.11"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would we want to do > 8.11 as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that is what this should mean, basically they all are supersets of the earliest one. I tested this on 8.11, 10.19, and 12.13

@ralbayaty
Copy link
Contributor

FWIW, I don't think we should be supporting node versions less than what we use in our stack anyways.

@benogle
Copy link
Contributor Author

benogle commented Feb 11, 2020

FWIW, I don't think we should be supporting node versions less than what we use in our stack anyways.

Def, node 6 is EOL anyway: https://aws.amazon.com/blogs/developer/node-js-6-is-approaching-end-of-life-upgrade-your-aws-lambda-functions-to-the-node-js-10-lts/

@benogle
Copy link
Contributor Author

benogle commented Mar 18, 2020

@ralbayaty When you get around to merging #9 feel free to incorporate this one as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regeneratorRuntime is not defined
2 participants