Move async-generators to stage-3 (#4617)
This commit is contained in:
parent
949febbcf0
commit
6f363b60bb
@ -8,7 +8,6 @@
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-2",
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"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-preset-stage-3": "^6.16.0"
|
||||
|
||||
@ -2,14 +2,12 @@ import presetStage3 from "babel-preset-stage-3";
|
||||
|
||||
import transformClassProperties from "babel-plugin-transform-class-properties";
|
||||
import transformDecorators from "babel-plugin-transform-decorators";
|
||||
import transformAsyncGeneratorFunctions from "babel-plugin-transform-async-generator-functions";
|
||||
|
||||
export default {
|
||||
presets: [
|
||||
presetStage3
|
||||
],
|
||||
plugins: [
|
||||
transformAsyncGeneratorFunctions,
|
||||
transformClassProperties,
|
||||
transformDecorators
|
||||
]
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"babel-plugin-syntax-trailing-function-commas": "^6.3.13",
|
||||
"babel-plugin-transform-async-generator-functions": "^6.16.0",
|
||||
"babel-plugin-transform-async-to-generator": "^6.16.0",
|
||||
"babel-plugin-transform-exponentiation-operator": "^6.3.13",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.16.0"
|
||||
|
||||
@ -2,12 +2,14 @@ import syntaxTrailingFunctionCommas from "babel-plugin-syntax-trailing-function-
|
||||
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";
|
||||
import transformAsyncGeneratorFunctions from "babel-plugin-transform-async-generator-functions";
|
||||
|
||||
export default {
|
||||
plugins: [
|
||||
syntaxTrailingFunctionCommas, // in ES2017 (remove as a breaking change)
|
||||
transformAsyncToGenerator, // in ES2017 (remove as a breaking change)
|
||||
transformExponentiationOperator, // in ES2016 (remove as a breaking change)
|
||||
transformAsyncGeneratorFunctions,
|
||||
transformObjectRestSpread
|
||||
]
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user