shipped-proposals.js 676 B

123456789101112131415161718
  1. // These mappings represent the builtin/feature proposals that have been
  2. // shipped by browsers, and are enabled by the `shippedProposals` option.
  3. const builtIns = {
  4. "es7.array.flat-map": "Array.prototype.{flat, flatMap} / Array.prototype.flatMap"
  5. };
  6. const features = {};
  7. const pluginSyntaxMap = new Map([
  8. ["proposal-async-generator-functions", "syntax-async-generators"],
  9. ["proposal-object-rest-spread", "syntax-object-rest-spread"],
  10. ["proposal-optional-catch-binding", "syntax-optional-catch-binding"],
  11. ["proposal-unicode-property-regex", null],
  12. ["proposal-json-strings", "syntax-json-strings"],
  13. ]);
  14. module.exports = { builtIns, features, pluginSyntaxMap };