Sha256: 34e442be12a782a0191f4cd8c792caef9eb1f23b606428607a4c134c10705f01

Contents?: true

Size: 1.23 KB

Versions: 9

Compression:

Stored size: 1.23 KB

Contents

/* eslint sort-keys: "error" */
// These mappings represent the syntax proposals that have been
// shipped by browsers, and are enabled by the `shippedProposals` option.

const proposalPlugins = new Set([
  "proposal-class-properties",
  "proposal-private-methods"
]);

// use intermediary object to enforce alphabetical key order
const pluginSyntaxObject = {
  "proposal-async-generator-functions": "syntax-async-generators",
  "proposal-class-properties": "syntax-class-properties",
  "proposal-json-strings": "syntax-json-strings",
  "proposal-nullish-coalescing-operator": "syntax-nullish-coalescing-operator",
  "proposal-numeric-separator": "syntax-numeric-separator",
  "proposal-object-rest-spread": "syntax-object-rest-spread",
  "proposal-optional-catch-binding": "syntax-optional-catch-binding",
  "proposal-optional-chaining": "syntax-optional-chaining",
  // note: we don't have syntax-private-methods
  "proposal-private-methods": "syntax-class-properties",
  "proposal-unicode-property-regex": null,
};

const pluginSyntaxEntries = Object.keys(pluginSyntaxObject).map(function (key) {
  return [key, pluginSyntaxObject[key]];
});

const pluginSyntaxMap = new Map(pluginSyntaxEntries);

module.exports = { pluginSyntaxMap, proposalPlugins };

Version data entries

9 entries across 8 versions & 4 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/preset-env/data/shipped-proposals.js
tang-0.2.1 spec/tang_app/node_modules/@babel/preset-env/data/shipped-proposals.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/@babel/preset-env/data/shipped-proposals.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/@babel/preset-env/data/shipped-proposals.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@babel/preset-env/data/shipped-proposals.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/@babel/preset-env/data/shipped-proposals.js
tang-0.2.0 spec/tang_app/node_modules/@babel/preset-env/data/shipped-proposals.js
tang-0.1.0 spec/tang_app/node_modules/@babel/preset-env/data/shipped-proposals.js
tang-0.0.9 spec/tang_app/node_modules/@babel/preset-env/data/shipped-proposals.js