mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
33 lines
1.3 KiB
JavaScript
33 lines
1.3 KiB
JavaScript
/* 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-static-block",
|
|
]);
|
|
|
|
// use intermediary object to enforce alphabetical key order
|
|
const pluginSyntaxObject = {
|
|
"proposal-async-generator-functions": "syntax-async-generators",
|
|
"proposal-class-properties": "syntax-class-properties",
|
|
"proposal-class-static-block": "syntax-class-static-block",
|
|
"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-private-property-in-object": "syntax-private-property-in-object",
|
|
"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 };
|