move object-rest-spread to stage-3
This commit is contained in:
parent
0ab904e2d9
commit
efa0affea1
@ -11,7 +11,6 @@
|
||||
"babel-plugin-transform-async-generator-functions": "^6.16.0",
|
||||
"babel-plugin-transform-class-properties": "^6.16.0",
|
||||
"babel-plugin-transform-decorators": "^6.13.0",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.16.0",
|
||||
"babel-preset-stage-3": "^6.16.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import presetStage3 from "babel-preset-stage-3";
|
||||
|
||||
import transformClassProperties from "babel-plugin-transform-class-properties";
|
||||
import transformObjectRestSpread from "babel-plugin-transform-object-rest-spread";
|
||||
import transformDecorators from "babel-plugin-transform-decorators";
|
||||
import transformAsyncGeneratorFunctions from "babel-plugin-transform-async-generator-functions";
|
||||
|
||||
@ -12,7 +11,6 @@ export default {
|
||||
plugins: [
|
||||
transformAsyncGeneratorFunctions,
|
||||
transformClassProperties,
|
||||
transformObjectRestSpread,
|
||||
transformDecorators
|
||||
]
|
||||
};
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
"dependencies": {
|
||||
"babel-plugin-syntax-trailing-function-commas": "^6.3.13",
|
||||
"babel-plugin-transform-async-to-generator": "^6.16.0",
|
||||
"babel-plugin-transform-exponentiation-operator": "^6.3.13"
|
||||
"babel-plugin-transform-exponentiation-operator": "^6.3.13",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.16.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
import syntaxTrailingFunctionCommas from "babel-plugin-syntax-trailing-function-commas";
|
||||
import transformAsyncToGenerator from "babel-plugin-transform-async-to-generator";
|
||||
import transformExponentiationOperator from "babel-plugin-transform-exponentiation-operator";
|
||||
import transformObjectRestSpread from "babel-plugin-transform-object-rest-spread";
|
||||
|
||||
export default {
|
||||
plugins: [
|
||||
syntaxTrailingFunctionCommas,
|
||||
transformAsyncToGenerator,
|
||||
transformExponentiationOperator
|
||||
syntaxTrailingFunctionCommas, // in ES2017 (remove as a breaking change)
|
||||
transformAsyncToGenerator, // in ES2017 (remove as a breaking change)
|
||||
transformExponentiationOperator, // in ES2016 (remove as a breaking change)
|
||||
transformObjectRestSpread
|
||||
]
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user