Skip to content

Commit d84610a

Browse files
committedJun 2, 2016
web: use object spread operator
While the spread operator is not part of ES6, React also uses it for JSX. It makes sense for us to keep it in other parts of the codebase as well.
1 parent 5e38540 commit d84610a

File tree

3 files changed

+399
-501
lines changed

3 files changed

+399
-501
lines changed
 

‎mitmproxy/web/static/vendor.js

+397-500
Large diffs are not rendered by default.

‎web/.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"presets": ["es2015", "react"],
3-
"plugins": ["transform-class-properties"]
3+
"plugins": ["transform-class-properties", "transform-object-rest-spread"]
44
}

‎web/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"babel-core": "^6.7.7",
3131
"babel-jest": "^12.0.2",
3232
"babel-plugin-transform-class-properties": "^6.6.0",
33+
"babel-plugin-transform-object-rest-spread": "^6.8.0",
3334
"babel-preset-es2015": "^6.6.0",
3435
"babel-preset-react": "^6.5.0",
3536
"babelify": "^7.3.0",

0 commit comments

Comments
 (0)
Please sign in to comment.