forked from babel/babel
/
plugin-bugfixes.js
44 lines (43 loc) 路 1.48 KB
/
plugin-bugfixes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* eslint sort-keys: "error" */
module.exports = {
"bugfix/transform-async-arrows-in-class": {
features: ["async functions / async arrow functions in methods, classes"],
replaces: "transform-async-to-generator",
},
"bugfix/transform-edge-default-parameters": {
features: [
"destructuring, parameters / shorthand defaults, arrow function",
],
replaces: "transform-parameters",
},
"bugfix/transform-edge-function-name": {
features: ['function "name" property / variables (function)'],
replaces: "transform-function-name",
},
"bugfix/transform-safari-block-shadowing": {
features: [
"const / scope shadow resolution",
"const / scope shadow resolution (strict mode)",
"let / scope shadow resolution",
"let / scope shadow resolution (strict mode)",
],
replaces: "transform-block-scoping",
},
"bugfix/transform-safari-for-shadowing": {
features: [
"let / for-in loop binding shadowing parameter",
"let / for-in loop binding shadowing parameter (strict mode)",
],
replaces: "transform-block-scoping",
},
"bugfix/transform-tagged-template-caching": {
features: ["template literals / TemplateStrings permanent caching"],
replaces: "transform-template-literals",
},
"bugfix/transform-v8-spread-parameters-after-optional-chaining": {
features: [
"optional chaining operator (?.) / spread parameters after optional chaining",
],
replaces: "proposal-optional-chaining",
},
};