mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00: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:
parent
5e385405ca
commit
d84610a41d
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",
|
||||
|
Loading…
Reference in New Issue
Block a user