Move async-generators to stage-3 (#4617)

This commit is contained in:
Henry Zhu 2016-09-30 17:29:18 -04:00 committed by GitHub
parent 949febbcf0
commit 6f363b60bb
4 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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
]

View File

@ -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"

View File

@ -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
]
};