web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

  1. /* eslint sort-keys: "error" */
  2. // These mappings represent the syntax proposals that have been
  3. // shipped by browsers, and are enabled by the `shippedProposals` option.
  4. const proposalPlugins = new Set([
  5. "proposal-class-properties",
  6. "proposal-private-methods"
  7. ]);
  8. // use intermediary object to enforce alphabetical key order
  9. const pluginSyntaxObject = {
  10. "proposal-async-generator-functions": "syntax-async-generators",
  11. "proposal-class-properties": "syntax-class-properties",
  12. "proposal-json-strings": "syntax-json-strings",
  13. "proposal-nullish-coalescing-operator": "syntax-nullish-coalescing-operator",
  14. "proposal-numeric-separator": "syntax-numeric-separator",
  15. "proposal-object-rest-spread": "syntax-object-rest-spread",
  16. "proposal-optional-catch-binding": "syntax-optional-catch-binding",
  17. "proposal-optional-chaining": "syntax-optional-chaining",
  18. // note: we don't have syntax-private-methods
  19. "proposal-private-methods": "syntax-class-properties",
  20. "proposal-unicode-property-regex": null,
  21. };
  22. const pluginSyntaxEntries = Object.keys(pluginSyntaxObject).map(function (key) {
  23. return [key, pluginSyntaxObject[key]];
  24. });
  25. const pluginSyntaxMap = new Map(pluginSyntaxEntries);
  26. module.exports = { pluginSyntaxMap, proposalPlugins };