plugin-features.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. module.exports = {
  2. // es2015
  3. "check-es2015-constants": {
  4. features: [
  5. "const",
  6. ],
  7. },
  8. "transform-es2015-arrow-functions": {
  9. features: [
  10. "arrow functions",
  11. ],
  12. },
  13. "transform-es2015-block-scoped-functions": {
  14. features: [
  15. "block-level function declaration"
  16. ],
  17. },
  18. "transform-es2015-block-scoping": {
  19. features: [
  20. "const",
  21. "let",
  22. ],
  23. },
  24. "transform-es2015-classes": {
  25. features: [
  26. "class",
  27. "super",
  28. ],
  29. },
  30. "transform-es2015-computed-properties": {
  31. features: [
  32. "object literal extensions / computed properties",
  33. ],
  34. },
  35. "transform-es2015-destructuring": {
  36. features: [
  37. "destructuring, assignment",
  38. "destructuring, declarations",
  39. "destructuring, parameters",
  40. ],
  41. },
  42. "transform-es2015-duplicate-keys": {
  43. features: [
  44. "miscellaneous / duplicate property names in strict mode",
  45. ],
  46. },
  47. "transform-es2015-for-of": {
  48. features: [
  49. "for..of loops",
  50. ],
  51. },
  52. "transform-es2015-function-name": {
  53. features: [
  54. "function \"name\" property",
  55. ]
  56. },
  57. "transform-es2015-literals": {
  58. features: [
  59. "Unicode code point escapes",
  60. ],
  61. },
  62. "transform-es2015-object-super": {
  63. features: [
  64. "super",
  65. ],
  66. },
  67. "transform-es2015-parameters": {
  68. features: [
  69. "default function parameters",
  70. "rest parameters",
  71. ],
  72. },
  73. "transform-es2015-shorthand-properties": {
  74. features: [
  75. "object literal extensions / shorthand properties",
  76. ],
  77. },
  78. "transform-es2015-spread": {
  79. features: [
  80. "spread (...) operator",
  81. ],
  82. },
  83. "transform-es2015-sticky-regex": {
  84. features: [
  85. "RegExp \"y\" and \"u\" flags / \"y\" flag, lastIndex",
  86. "RegExp \"y\" and \"u\" flags / \"y\" flag",
  87. ],
  88. },
  89. "transform-es2015-template-literals": {
  90. features: [
  91. "template literals",
  92. ],
  93. },
  94. "transform-es2015-typeof-symbol": {
  95. features: [
  96. "Symbol / typeof support"
  97. ],
  98. },
  99. "transform-es2015-unicode-regex": {
  100. features: [
  101. "RegExp \"y\" and \"u\" flags / \"u\" flag, case folding",
  102. "RegExp \"y\" and \"u\" flags / \"u\" flag, Unicode code point escapes",
  103. "RegExp \"y\" and \"u\" flags / \"u\" flag",
  104. ],
  105. },
  106. "transform-regenerator": {
  107. features: [
  108. "generators",
  109. ],
  110. },
  111. // es2016
  112. "transform-exponentiation-operator": {
  113. features: [
  114. "exponentiation (**) operator",
  115. ],
  116. },
  117. // es2017
  118. "transform-async-to-generator": {
  119. features: [
  120. "async functions",
  121. ],
  122. },
  123. "syntax-trailing-function-commas": {
  124. features: [
  125. "trailing commas in function syntax",
  126. ],
  127. }
  128. };