UNPKG

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