You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.2 KiB

4 years ago
  1. const es = {
  2. "transform-template-literals": {
  3. features: ["template literals"],
  4. },
  5. "transform-literals": {
  6. features: ["Unicode code point escapes"],
  7. },
  8. "transform-function-name": {
  9. features: ['function "name" property'],
  10. },
  11. "transform-arrow-functions": {
  12. features: ["arrow functions"],
  13. },
  14. "transform-block-scoped-functions": {
  15. features: ["block-level function declaration"],
  16. },
  17. "transform-classes": {
  18. features: ["class", "super"],
  19. },
  20. "transform-object-super": {
  21. features: ["super"],
  22. },
  23. "transform-shorthand-properties": {
  24. features: ["object literal extensions / shorthand properties"],
  25. },
  26. "transform-duplicate-keys": {
  27. features: ["miscellaneous / duplicate property names in strict mode"],
  28. },
  29. "transform-computed-properties": {
  30. features: ["object literal extensions / computed properties"],
  31. },
  32. "transform-for-of": {
  33. features: ["for..of loops"],
  34. },
  35. "transform-sticky-regex": {
  36. features: [
  37. 'RegExp "y" and "u" flags / "y" flag, lastIndex',
  38. 'RegExp "y" and "u" flags / "y" flag',
  39. ],
  40. },
  41. // We want to apply this prior to unicode regex so that "." and "u"
  42. // are properly handled.
  43. //
  44. // Ref: https://github.com/babel/babel/pull/7065#issuecomment-395959112
  45. "transform-dotall-regex": "s (dotAll) flag for regular expressions",
  46. "transform-unicode-regex": {
  47. features: [
  48. 'RegExp "y" and "u" flags / "u" flag, case folding',
  49. 'RegExp "y" and "u" flags / "u" flag, Unicode code point escapes',
  50. 'RegExp "y" and "u" flags / "u" flag, non-BMP Unicode characters',
  51. 'RegExp "y" and "u" flags / "u" flag',
  52. ],
  53. },
  54. "transform-spread": {
  55. features: "spread syntax for iterable objects",
  56. },
  57. "transform-parameters": {
  58. features: [
  59. "default function parameters",
  60. "rest parameters",
  61. "destructuring, parameters / defaults, arrow function",
  62. ],
  63. },
  64. "transform-destructuring": {
  65. features: [
  66. "destructuring, assignment",
  67. "destructuring, declarations",
  68. ],
  69. },
  70. "transform-block-scoping": {
  71. features: ["const", "let"],
  72. },
  73. "transform-typeof-symbol": {
  74. features: ["Symbol / typeof support"],
  75. },
  76. "transform-new-target": {
  77. features: ["new.target"],
  78. },
  79. "transform-regenerator": {
  80. features: ["generators"],
  81. },
  82. "transform-exponentiation-operator": {
  83. features: ["exponentiation (**) operator"],
  84. },
  85. "transform-async-to-generator": {
  86. features: ["async functions"],
  87. },
  88. "proposal-async-generator-functions": "Asynchronous Iterators",
  89. "proposal-object-rest-spread": "object rest/spread properties",
  90. "proposal-unicode-property-regex": "RegExp Unicode Property Escapes",
  91. "proposal-json-strings": "JSON superset",
  92. "proposal-optional-catch-binding": "optional catch binding",
  93. "transform-named-capturing-groups-regex": "RegExp named capture groups",
  94. "transform-member-expression-literals": "Object/array literal extensions / Reserved words as property names",
  95. "transform-property-literals": "Object/array literal extensions / Reserved words as property names",
  96. "transform-reserved-words": "Miscellaneous / Unreserved words",
  97. };
  98. const proposals = require("./shipped-proposals").features;
  99. module.exports = Object.assign({}, es, proposals);