1 |
|
2 |
|
3 |
|
4 |
|
5 | const proposalPlugins = {};
|
6 |
|
7 |
|
8 | const pluginSyntaxObject = {
|
9 | "proposal-async-generator-functions": "syntax-async-generators",
|
10 | "proposal-json-strings": "syntax-json-strings",
|
11 | "proposal-nullish-coalescing-operator": "syntax-nullish-coalescing-operator",
|
12 | "proposal-object-rest-spread": "syntax-object-rest-spread",
|
13 | "proposal-optional-catch-binding": "syntax-optional-catch-binding",
|
14 | "proposal-optional-chaining": "syntax-optional-chaining",
|
15 | "proposal-unicode-property-regex": null,
|
16 | };
|
17 |
|
18 | const pluginSyntaxEntries = Object.keys(pluginSyntaxObject).map(function (key) {
|
19 | return [key, pluginSyntaxObject[key]];
|
20 | });
|
21 |
|
22 | const pluginSyntaxMap = new Map(pluginSyntaxEntries);
|
23 |
|
24 | module.exports = { pluginSyntaxMap, proposalPlugins };
|