From 57584268cdaed12ef1fdc27841207c82c1241745 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Tue, 19 Sep 2017 15:19:13 -0400 Subject: [PATCH] move out syntax plugins to babel/babel-archive, they don't need to be updated (#6229) --- .../misc/regression-2765/options.json | 1 - .../.npmignore | 3 - .../README.md | 50 ------- .../package.json | 11 -- .../src/index.js | 7 - .../.npmignore | 3 - .../README.md | 35 ----- .../package.json | 11 -- .../src/index.js | 7 - .../.npmignore | 3 - .../README.md | 122 ------------------ .../package.json | 14 -- .../src/index.js | 7 - .../arrow-function/actual.js | 1 - .../arrow-function/expected.js | 1 - .../trailing-function-commas/call/actual.js | 4 - .../trailing-function-commas/call/expected.js | 1 - .../declaration/actual.js | 8 -- .../declaration/expected.js | 3 - .../new-expression/actual.js | 1 - .../new-expression/expected.js | 1 - .../trailing-function-commas/options.json | 3 - .../test-exec-require/exec.js | 4 - .../test/index.js | 3 - .../fixtures/regression/T6755/options.json | 1 - .../test/fixtures/parameters/options.json | 13 +- .../rest-arrow-functions/options.json | 15 ++- .../fixtures/use-loose-option/options.json | 13 +- .../test/fixtures/strip-types/options.json | 2 +- .../fixtures/preset-options/6025/options.json | 3 +- .../test/fixtures/traceur/options.json | 1 - 31 files changed, 39 insertions(+), 313 deletions(-) delete mode 100644 packages/babel-plugin-syntax-async-functions/.npmignore delete mode 100644 packages/babel-plugin-syntax-async-functions/README.md delete mode 100644 packages/babel-plugin-syntax-async-functions/package.json delete mode 100644 packages/babel-plugin-syntax-async-functions/src/index.js delete mode 100644 packages/babel-plugin-syntax-exponentiation-operator/.npmignore delete mode 100644 packages/babel-plugin-syntax-exponentiation-operator/README.md delete mode 100644 packages/babel-plugin-syntax-exponentiation-operator/package.json delete mode 100644 packages/babel-plugin-syntax-exponentiation-operator/src/index.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/.npmignore delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/README.md delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/package.json delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/src/index.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/actual.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/expected.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/actual.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/expected.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/declaration/actual.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/declaration/expected.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/actual.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/expected.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/options.json delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/test-exec-require/exec.js delete mode 100644 packages/babel-plugin-syntax-trailing-function-commas/test/index.js diff --git a/packages/babel-core/test/fixtures/transformation/misc/regression-2765/options.json b/packages/babel-core/test/fixtures/transformation/misc/regression-2765/options.json index a6cc8b11cb..ca83e712a9 100644 --- a/packages/babel-core/test/fixtures/transformation/misc/regression-2765/options.json +++ b/packages/babel-core/test/fixtures/transformation/misc/regression-2765/options.json @@ -1,7 +1,6 @@ { "plugins": [ "transform-es2015-arrow-functions", - "syntax-async-functions", "transform-async-to-generator", "external-helpers" ] diff --git a/packages/babel-plugin-syntax-async-functions/.npmignore b/packages/babel-plugin-syntax-async-functions/.npmignore deleted file mode 100644 index f980694583..0000000000 --- a/packages/babel-plugin-syntax-async-functions/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -src -test -*.log diff --git a/packages/babel-plugin-syntax-async-functions/README.md b/packages/babel-plugin-syntax-async-functions/README.md deleted file mode 100644 index 97295be998..0000000000 --- a/packages/babel-plugin-syntax-async-functions/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# babel-plugin-syntax-async-functions - -> This plugin allows Babel to parse async functions. - -## Example - -**Syntax** - -```javascript -(async function() { - await loadStory(); - console.log("Yey, story successfully loaded!"); -}()); -``` - -## Installation - -```sh -npm install --save-dev babel-plugin-syntax-async-functions -``` - -## Usage - -### Via `.babelrc` (Recommended) - -**.babelrc** - -```json -{ - "plugins": ["syntax-async-functions"] -} -``` - -### Via CLI - -```sh -babel --plugins syntax-async-functions script.js -``` - -### Via Node API - -```javascript -require("babel-core").transform("code", { - plugins: ["syntax-async-functions"] -}); -``` - -## References - -* [Proposal: Async Functions for ECMAScript](https://github.com/tc39/ecmascript-asyncawait) diff --git a/packages/babel-plugin-syntax-async-functions/package.json b/packages/babel-plugin-syntax-async-functions/package.json deleted file mode 100644 index 1b944f0c77..0000000000 --- a/packages/babel-plugin-syntax-async-functions/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "babel-plugin-syntax-async-functions", - "version": "7.0.0-beta.0", - "description": "Allow parsing of async functions", - "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-async-functions", - "license": "MIT", - "main": "lib/index.js", - "keywords": [ - "babel-plugin" - ] -} diff --git a/packages/babel-plugin-syntax-async-functions/src/index.js b/packages/babel-plugin-syntax-async-functions/src/index.js deleted file mode 100644 index bf3d3a16f4..0000000000 --- a/packages/babel-plugin-syntax-async-functions/src/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function() { - return { - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("asyncFunctions"); - }, - }; -} diff --git a/packages/babel-plugin-syntax-exponentiation-operator/.npmignore b/packages/babel-plugin-syntax-exponentiation-operator/.npmignore deleted file mode 100644 index f980694583..0000000000 --- a/packages/babel-plugin-syntax-exponentiation-operator/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -src -test -*.log diff --git a/packages/babel-plugin-syntax-exponentiation-operator/README.md b/packages/babel-plugin-syntax-exponentiation-operator/README.md deleted file mode 100644 index 80359f88a0..0000000000 --- a/packages/babel-plugin-syntax-exponentiation-operator/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# babel-plugin-syntax-exponentiation-operator - -> Allow parsing of the exponentiation operator. - -## Installation - -```sh -npm install --save-dev babel-plugin-syntax-exponentiation-operator -``` - -## Usage - -### Via `.babelrc` (Recommended) - -**.babelrc** - -```json -{ - "plugins": ["syntax-exponentiation-operator"] -} -``` - -### Via CLI - -```sh -babel --plugins syntax-exponentiation-operator script.js -``` - -### Via Node API - -```javascript -require("babel-core").transform("code", { - plugins: ["syntax-exponentiation-operator"] -}); -``` diff --git a/packages/babel-plugin-syntax-exponentiation-operator/package.json b/packages/babel-plugin-syntax-exponentiation-operator/package.json deleted file mode 100644 index 3f5437d303..0000000000 --- a/packages/babel-plugin-syntax-exponentiation-operator/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "babel-plugin-syntax-exponentiation-operator", - "version": "7.0.0-beta.0", - "description": "Allow parsing of the exponentiation operator", - "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-exponentation-operator", - "license": "MIT", - "main": "lib/index.js", - "keywords": [ - "babel-plugin" - ] -} diff --git a/packages/babel-plugin-syntax-exponentiation-operator/src/index.js b/packages/babel-plugin-syntax-exponentiation-operator/src/index.js deleted file mode 100644 index f02f261183..0000000000 --- a/packages/babel-plugin-syntax-exponentiation-operator/src/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function() { - return { - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("exponentiationOperator"); - }, - }; -} diff --git a/packages/babel-plugin-syntax-trailing-function-commas/.npmignore b/packages/babel-plugin-syntax-trailing-function-commas/.npmignore deleted file mode 100644 index f980694583..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -src -test -*.log diff --git a/packages/babel-plugin-syntax-trailing-function-commas/README.md b/packages/babel-plugin-syntax-trailing-function-commas/README.md deleted file mode 100644 index 4cbd797a4b..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# babel-plugin-syntax-trailing-function-commas - -> Compile trailing function commas to ES5 - - -```js -function clownPuppiesEverywhere( - param1, - param2, -) { /* ... */ } - -clownPuppiesEverywhere( - 'foo', - 'bar', -); -``` - -## Example - -### Basic -This is an example from the [Proposal](https://github.com/jeffmo/es-trailing-function-commas). - -Let's say you have this function: - -```js -function clownPuppiesEverywhere( - param1, - param2 -) { /* ... */ } - -clownPuppiesEverywhere( - 'foo', - 'bar' -); -``` - -If you want to have a new parameter called `param3`, the diff output would be like that: - -```diff -function clownPuppiesEverywhere( - param1, -- param2 -+ param2, // Change this line to add a comma -+ param3 // Add param3 -) { /* ... */ } - -clownPuppiesEverywhere( - 'foo', -- 'bar' -+ 'bar', // Change this line to add a comma -+ 'baz' // Add param3 -); -``` -In total, you have to change 2 lines for the function declaration and 2 lines for each usage. - -If you had your function defined with trailing commas: - -```js -function clownPuppiesEverywhere( - param1, - param2, -) { /* ... */ } - -clownPuppiesEverywhere( - 'foo', - 'bar', -); -``` -Adding a new parameter would only change one line in the function declaration and one line for each usage: - -```diff -function clownPuppiesEverywhere( - param1, - param2, -+ param3, // Add param3 -) { /* ... */ } - -clownPuppiesEverywhere( - 'foo', - 'bar', -+ 'baz', // Add param3 -); -``` -In the end, your diff output will be cleaner and easier to read, it would be much quicker to add a new parameter to your functions, it also makes it easier to copy paste elements and move code around. - -## Installation - -```sh -npm install --save-dev babel-plugin-syntax-trailing-function-commas -``` - -## Usage - -### Via `.babelrc` (Recommended) - -**.babelrc** - -```json -{ - "plugins": ["syntax-trailing-function-commas"] -} -``` - -### Via CLI - -```sh -babel --plugins syntax-trailing-function-commas script.js -``` - -### Via Node API - -```javascript -require("babel-core").transform("code", { - plugins: ["syntax-trailing-function-commas"] -}); -``` - -## References - -* [Proposal](https://github.com/jeffmo/es-trailing-function-commas) -* [Spec](http://jeffmo.github.io/es-trailing-function-commas/) -* [Why you should enforce Dangling Commas for Multiline Statements](https://medium.com/@nikgraf/why-you-should-enforce-dangling-commas-for-multiline-statements-d034c98e36f8) diff --git a/packages/babel-plugin-syntax-trailing-function-commas/package.json b/packages/babel-plugin-syntax-trailing-function-commas/package.json deleted file mode 100644 index e8399be889..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "babel-plugin-syntax-trailing-function-commas", - "version": "7.0.0-beta.0", - "description": "Compile trailing function commas to ES5", - "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-trailing-function-commas", - "license": "MIT", - "main": "lib/index.js", - "keywords": [ - "babel-plugin" - ], - "devDependencies": { - "babel-helper-plugin-test-runner": "7.0.0-beta.0" - } -} diff --git a/packages/babel-plugin-syntax-trailing-function-commas/src/index.js b/packages/babel-plugin-syntax-trailing-function-commas/src/index.js deleted file mode 100644 index f8b532096b..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/src/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function() { - return { - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("trailingFunctionCommas"); - }, - }; -} diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/actual.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/actual.js deleted file mode 100644 index 79ea641f6c..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/actual.js +++ /dev/null @@ -1 +0,0 @@ -(x, y, ) => {}; diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/expected.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/expected.js deleted file mode 100644 index 5b8bd230b7..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/expected.js +++ /dev/null @@ -1 +0,0 @@ -(x, y) => {}; diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/actual.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/actual.js deleted file mode 100644 index a00f52d4c6..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/actual.js +++ /dev/null @@ -1,4 +0,0 @@ -Math.max(1, - 2, - 3, -); diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/expected.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/expected.js deleted file mode 100644 index f7830fd7a7..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/expected.js +++ /dev/null @@ -1 +0,0 @@ -Math.max(1, 2, 3); diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/declaration/actual.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/declaration/actual.js deleted file mode 100644 index eaedb39571..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/declaration/actual.js +++ /dev/null @@ -1,8 +0,0 @@ -function thisIsAFunctionWithAVeryLongNameAndWayTooManyParameters( - thisIsTheFirstParameter, andThisOneIsRelatedToIt, - butNotThisOne, - andNeitherThis, - inFactThereArentThatManyParameters, -) { - throw null; -} diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/declaration/expected.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/declaration/expected.js deleted file mode 100644 index f52619513c..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/declaration/expected.js +++ /dev/null @@ -1,3 +0,0 @@ -function thisIsAFunctionWithAVeryLongNameAndWayTooManyParameters(thisIsTheFirstParameter, andThisOneIsRelatedToIt, butNotThisOne, andNeitherThis, inFactThereArentThatManyParameters) { - throw null; -} diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/actual.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/actual.js deleted file mode 100644 index 8b6de60f82..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/actual.js +++ /dev/null @@ -1 +0,0 @@ -new Foo(a, b,); diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/expected.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/expected.js deleted file mode 100644 index dbfd4d3267..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/expected.js +++ /dev/null @@ -1 +0,0 @@ -new Foo(a, b); diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/options.json b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/options.json deleted file mode 100644 index db2590b82a..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "plugins": ["syntax-trailing-function-commas"] -} diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/test-exec-require/exec.js b/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/test-exec-require/exec.js deleted file mode 100644 index d4790d93bd..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/test-exec-require/exec.js +++ /dev/null @@ -1,4 +0,0 @@ -// builtin module -require("path"); -// relative module -require("../../../../lib"); diff --git a/packages/babel-plugin-syntax-trailing-function-commas/test/index.js b/packages/babel-plugin-syntax-trailing-function-commas/test/index.js deleted file mode 100644 index 09cfbc31f5..0000000000 --- a/packages/babel-plugin-syntax-trailing-function-commas/test/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import runner from "babel-helper-plugin-test-runner"; - -runner(__dirname); diff --git a/packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/T6755/options.json b/packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/T6755/options.json index 56bdb2dbf3..b4df0168ce 100644 --- a/packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/T6755/options.json +++ b/packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/T6755/options.json @@ -1,6 +1,5 @@ { "plugins": [ - "syntax-async-functions", ["transform-es2015-classes", { "loose": true }] ] } diff --git a/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/options.json b/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/options.json index 107c109587..f022573709 100644 --- a/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/options.json +++ b/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/options.json @@ -1,3 +1,14 @@ { - "plugins": ["transform-class-properties", "external-helpers", "syntax-flow", "transform-es2015-parameters", "transform-es2015-block-scoping", "transform-es2015-spread", "transform-es2015-classes", "transform-es2015-destructuring", "transform-es2015-arrow-functions", "syntax-async-functions", "transform-es2015-for-of"] + "plugins": [ + "transform-class-properties", + "external-helpers", + "syntax-flow", + "transform-es2015-parameters", + "transform-es2015-block-scoping", + "transform-es2015-spread", + "transform-es2015-classes", + "transform-es2015-destructuring", + "transform-es2015-arrow-functions", + "transform-es2015-for-of" + ] } diff --git a/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/rest-arrow-functions/options.json b/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/rest-arrow-functions/options.json index 7da7d68771..d4410a98a8 100644 --- a/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/rest-arrow-functions/options.json +++ b/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/rest-arrow-functions/options.json @@ -1,3 +1,14 @@ { - "plugins": [["transform-class-properties", {"loose": true}], "external-helpers", "syntax-flow", "transform-es2015-parameters", "transform-es2015-block-scoping", "transform-es2015-spread", "transform-es2015-classes", "transform-es2015-destructuring", "transform-es2015-arrow-functions", "syntax-async-functions", "transform-es2015-for-of"] -} \ No newline at end of file + "plugins": [ + ["transform-class-properties", {"loose": true}], + "external-helpers", + "syntax-flow", + "transform-es2015-parameters", + "transform-es2015-block-scoping", + "transform-es2015-spread", + "transform-es2015-classes", + "transform-es2015-destructuring", + "transform-es2015-arrow-functions", + "transform-es2015-for-of" + ] +} diff --git a/packages/babel-plugin-transform-es2015-parameters/test/fixtures/use-loose-option/options.json b/packages/babel-plugin-transform-es2015-parameters/test/fixtures/use-loose-option/options.json index d7c9c408a0..76c8541c28 100644 --- a/packages/babel-plugin-transform-es2015-parameters/test/fixtures/use-loose-option/options.json +++ b/packages/babel-plugin-transform-es2015-parameters/test/fixtures/use-loose-option/options.json @@ -1,3 +1,14 @@ { - "plugins": ["transform-class-properties", "external-helpers", "syntax-flow", ["transform-es2015-parameters", { "loose": true } ], "transform-es2015-block-scoping", "transform-es2015-spread", "transform-es2015-classes", "transform-es2015-destructuring", "transform-es2015-arrow-functions", "syntax-async-functions", "transform-es2015-for-of"] + "plugins": [ + "transform-class-properties", + "external-helpers", + "syntax-flow", + ["transform-es2015-parameters", { "loose": true } ], + "transform-es2015-block-scoping", + "transform-es2015-spread", + "transform-es2015-classes", + "transform-es2015-destructuring", + "transform-es2015-arrow-functions", + "transform-es2015-for-of" + ] } diff --git a/packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/options.json b/packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/options.json index 445f44effc..d42eaa2130 100644 --- a/packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/options.json +++ b/packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/options.json @@ -1,3 +1,3 @@ { - "plugins": ["transform-flow-strip-types", "syntax-async-functions"] + "plugins": ["transform-flow-strip-types"] } diff --git a/packages/babel-preset-es2015/test/fixtures/preset-options/6025/options.json b/packages/babel-preset-es2015/test/fixtures/preset-options/6025/options.json index aa29b36487..c830b0bd8b 100644 --- a/packages/babel-preset-es2015/test/fixtures/preset-options/6025/options.json +++ b/packages/babel-preset-es2015/test/fixtures/preset-options/6025/options.json @@ -22,7 +22,6 @@ "transform-es2015-unicode-regex", "transform-regenerator", "transform-exponentiation-operator", - "transform-async-to-generator", - "syntax-trailing-function-commas" + "transform-async-to-generator" ] } diff --git a/packages/babel-preset-es2015/test/fixtures/traceur/options.json b/packages/babel-preset-es2015/test/fixtures/traceur/options.json index f549ded098..e38ed360b6 100644 --- a/packages/babel-preset-es2015/test/fixtures/traceur/options.json +++ b/packages/babel-preset-es2015/test/fixtures/traceur/options.json @@ -1,7 +1,6 @@ { "plugins": [ "transform-exponentiation-operator", - "syntax-async-functions", "transform-regenerator", "transform-es2015-template-literals", "transform-es2015-literals",