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

Add babel plugin transform-object-rest-spread for redux #1

Open
omgoshjosh opened this issue Nov 22, 2016 · 0 comments
Open

Add babel plugin transform-object-rest-spread for redux #1

omgoshjosh opened this issue Nov 22, 2016 · 0 comments

Comments

@omgoshjosh
Copy link
Owner

http://redux.js.org/docs/recipes/UsingObjectSpreadOperator.html

Since the object spread syntax is still a Stage 2 proposal for ECMAScript you'll need to use a transpiler such as Babel to use it in production. You can use your existing es2015 preset, install babel-plugin-transform-object-rest-spread and add it individually to the plugins array in your .babelrc.

{
  "presets": ["es2015"],
  "plugins": ["transform-object-rest-spread"]
}
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

No branches or pull requests

1 participant