<!-- Before making a PR please make sure to read our contributing guidelines https://github.com/babel/babel/blob/master/CONTRIBUTING.md For issue references: Add a comma-separated list of a [closing word](https://help.github.com/articles/closing-issues-via-commit-messages/) followed by the ticket number fixed by the PR. It should be underlined in the preview if done correctly. --> | Q | A <!--(Can use an emoji 👍) --> | ------------------------ | --- | Fixed Issues? | -- | Patch: Bug Fix? | | Major: Breaking Change? | | Minor: New Feature? | | Tests Added + Pass? | Yes | Documentation PR | <!-- If so, add `[skip ci]` to your commit message to skip CI --> | Any Dependency Changes? | | License | MIT Good ol' plugin ordering 🙃 Ref: https://github.com/babel/babel/pull/7065#issuecomment-395959112
98 lines
2.6 KiB
JavaScript
98 lines
2.6 KiB
JavaScript
const es = {
|
|
"transform-template-literals": {
|
|
features: ["template literals"],
|
|
},
|
|
"transform-literals": {
|
|
features: ["Unicode code point escapes"],
|
|
},
|
|
"transform-function-name": {
|
|
features: ['function "name" property'],
|
|
},
|
|
"transform-arrow-functions": {
|
|
features: ["arrow functions"],
|
|
},
|
|
"transform-block-scoped-functions": {
|
|
features: ["block-level function declaration"],
|
|
},
|
|
"transform-classes": {
|
|
features: ["class", "super"],
|
|
},
|
|
"transform-object-super": {
|
|
features: ["super"],
|
|
},
|
|
"transform-shorthand-properties": {
|
|
features: ["object literal extensions / shorthand properties"],
|
|
},
|
|
"transform-duplicate-keys": {
|
|
features: ["miscellaneous / duplicate property names in strict mode"],
|
|
},
|
|
"transform-computed-properties": {
|
|
features: ["object literal extensions / computed properties"],
|
|
},
|
|
"transform-for-of": {
|
|
features: ["for..of loops"],
|
|
},
|
|
"transform-sticky-regex": {
|
|
features: [
|
|
'RegExp "y" and "u" flags / "y" flag, lastIndex',
|
|
'RegExp "y" and "u" flags / "y" flag',
|
|
],
|
|
},
|
|
|
|
// We want to apply this prior to unicode regex so that "." and "u"
|
|
// are properly handled.
|
|
//
|
|
// Ref: https://github.com/babel/babel/pull/7065#issuecomment-395959112
|
|
"transform-dotall-regex": "s (dotAll) flag for regular expressions",
|
|
|
|
"transform-unicode-regex": {
|
|
features: [
|
|
'RegExp "y" and "u" flags / "u" flag, case folding',
|
|
'RegExp "y" and "u" flags / "u" flag, Unicode code point escapes',
|
|
'RegExp "y" and "u" flags / "u" flag',
|
|
],
|
|
},
|
|
|
|
"transform-spread": {
|
|
features: ["spread (...) operator"],
|
|
},
|
|
"transform-parameters": {
|
|
features: ["default function parameters", "rest parameters"],
|
|
},
|
|
"transform-destructuring": {
|
|
features: [
|
|
"destructuring, assignment",
|
|
"destructuring, declarations",
|
|
"destructuring, parameters",
|
|
],
|
|
},
|
|
"transform-block-scoping": {
|
|
features: ["const", "let"],
|
|
},
|
|
"transform-typeof-symbol": {
|
|
features: ["Symbol / typeof support"],
|
|
},
|
|
"transform-new-target": {
|
|
features: ["new.target"],
|
|
},
|
|
"transform-regenerator": {
|
|
features: ["generators"],
|
|
},
|
|
|
|
"transform-exponentiation-operator": {
|
|
features: ["exponentiation (**) operator"],
|
|
},
|
|
|
|
"transform-async-to-generator": {
|
|
features: ["async functions"],
|
|
},
|
|
|
|
"proposal-async-generator-functions": "Asynchronous Iterators",
|
|
"proposal-object-rest-spread": "object rest/spread properties",
|
|
"proposal-unicode-property-regex": "RegExp Unicode Property Escapes",
|
|
};
|
|
|
|
const proposals = require("./shipped-proposals").features;
|
|
|
|
module.exports = Object.assign({}, es, proposals);
|