mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 17:32:27 +08:00
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.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"presets": ["es2015", "react"],
|
||||
"plugins": ["transform-class-properties"]
|
||||
"plugins": ["transform-class-properties", "transform-object-rest-spread"]
|
||||
}
|
||||
@@ -30,6 +30,7 @@
|
||||
"babel-core": "^6.7.7",
|
||||
"babel-jest": "^12.0.2",
|
||||
"babel-plugin-transform-class-properties": "^6.6.0",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.8.0",
|
||||
"babel-preset-es2015": "^6.6.0",
|
||||
"babel-preset-react": "^6.5.0",
|
||||
"babelify": "^7.3.0",
|
||||
|
||||
Reference in New Issue
Block a user