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

Include babel-plugin-syntax-object-rest-spread in default Babel config #1554

Closed
novemberborn opened this issue Oct 17, 2017 · 0 comments
Closed
Labels

Comments

@novemberborn
Copy link
Member

novemberborn commented Oct 17, 2017

As of 8.3.0, Node.js supports object rest/spread without any flags. Out of the box Babel does not recognize this syntax though. We should include the babel-plugin-syntax-object-rest-spread plugin in our default Babel config.

Note that we only support stage-4 features, and object rest/spread is still stage-3. Thus the question is for which Node.js versions do we include this plugin? I'm leaning towards 8.3.0 and above. This would mean that if you're targeting just those versions you can use object rest/spread with AVA without having to make any customizations. If you're targeting older versions you'll need to configure the full babel-plugin-transform-object-rest-spread, which comes with the syntax plugin.

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

No branches or pull requests

2 participants