Remove Babylon plugins for features already merged to the ECMAScript spec (#8448)

These are now enabled by default:
- objectRestSpread (2018)
- asyncGenerators (2018)
- optionalCatchBInding (2019)
- jsonStrings (2019)

TODO (after this commit):
- [ ] Deprecate the `@babel/plugin-syntax-*` packages.
- [ ] Deprecate the `@babel/plugin-proposal-*` packages.
- [ ] Create the `@babel/plugin-transform-*` packages.
This commit is contained in:
Nicolò Ribaudo
2018-11-05 23:48:06 +01:00
committed by GitHub
parent c125b1dd74
commit 24c4901ff5
127 changed files with 151 additions and 873 deletions

View File

@@ -1,3 +0,0 @@
{
"plugins": ["objectRestSpread"]
}

View File

@@ -1 +0,0 @@
async function * f () {}

View File

@@ -1,4 +0,0 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'asyncGenerators' (1:15)",
"plugins": []
}

View File

@@ -1,4 +0,0 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'objectRestSpread' (1:2)",
"plugins": []
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["asyncGenerators"]
}

View File

@@ -1,3 +1,3 @@
{
"plugins": ["classPrivateMethods", "asyncGenerators"]
"plugins": ["classPrivateMethods"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["jsonStrings"]
}

View File

@@ -1,3 +0,0 @@
{
"plugins": ["objectRestSpread"]
}

View File

@@ -1,3 +0,0 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalCatchBinding' (4:6)"
}

View File

@@ -1,3 +0,0 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalCatchBinding' (4:6)"
}

View File

@@ -1,4 +0,0 @@
try {
} catch (err) {
} finally {
}

View File

@@ -1,134 +0,0 @@
{
"type": "File",
"start": 0,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "TryStatement",
"start": 0,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"block": {
"type": "BlockStatement",
"start": 4,
"end": 7,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 2,
"column": 1
}
},
"body": [],
"directives": []
},
"handler": {
"type": "CatchClause",
"start": 8,
"end": 23,
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 3,
"column": 1
}
},
"param": {
"type": "Identifier",
"start": 15,
"end": 18,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 12
},
"identifierName": "err"
},
"name": "err"
},
"body": {
"type": "BlockStatement",
"start": 20,
"end": 23,
"loc": {
"start": {
"line": 2,
"column": 14
},
"end": {
"line": 3,
"column": 1
}
},
"body": [],
"directives": []
}
},
"guardedHandlers": [],
"finalizer": {
"type": "BlockStatement",
"start": 32,
"end": 35,
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 4,
"column": 1
}
},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

Some files were not shown because too many files have changed in this diff Show More