Merge pull request #4611 from babel/async-gen-stg-2

Async gen stg 2
This commit is contained in:
Henry Zhu 2016-09-29 15:41:47 -04:00 committed by GitHub
commit 159779d582
4 changed files with 9 additions and 7 deletions

View File

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

View File

@ -1,16 +1,16 @@
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";
export default {
presets: [
presetStage3
],
plugins: [
transformAsyncGeneratorFunctions,
transformClassProperties,
transformObjectRestSpread,
transformDecorators
]
};

View File

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

View File

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