Skip to content

Commit

Permalink
Add rest spread to babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansukale committed Jun 2, 2018
1 parent ee06d10 commit 7c226d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"presets": ["env"]
"presets": ["env"],
"plugins": ["transform-object-rest-spread"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"dependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"batarang": "^2.0.12",
"redux-actions": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/redux-thunk/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
postJSON(url, {body, ...options}) {
return fetch(url, {
method: 'POST',
body: JSON.stringify(body),
body: JSON.stringify(options.body),
...options
}).then((response) => response.json());
}
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ babel-plugin-transform-flow-strip-types@^6.8.0:
babel-plugin-syntax-flow "^6.18.0"
babel-runtime "^6.22.0"

babel-plugin-transform-object-rest-spread@^6.22.0:
babel-plugin-transform-object-rest-spread@^6.22.0, babel-plugin-transform-object-rest-spread@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06"
dependencies:
Expand Down

0 comments on commit 7c226d3

Please sign in to comment.