plugins-compat-data.js 1007 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.pluginsBugfixes = exports.plugins = exports.overlappingPlugins = void 0;
  6. var _plugins = require("@babel/compat-data/plugins");
  7. var _pluginBugfixes = require("@babel/compat-data/plugin-bugfixes");
  8. var _overlappingPlugins = require("@babel/compat-data/overlapping-plugins");
  9. var _availablePlugins = require("./available-plugins");
  10. const keys = Object.keys;
  11. const plugins = filterAvailable(_plugins);
  12. exports.plugins = plugins;
  13. const pluginsBugfixes = filterAvailable(_pluginBugfixes);
  14. exports.pluginsBugfixes = pluginsBugfixes;
  15. const overlappingPlugins = filterAvailable(_overlappingPlugins);
  16. exports.overlappingPlugins = overlappingPlugins;
  17. function filterAvailable(data) {
  18. const result = {};
  19. for (const plugin of keys(data)) {
  20. if (Object.hasOwnProperty.call(_availablePlugins.default, plugin)) {
  21. result[plugin] = data[plugin];
  22. }
  23. }
  24. return result;
  25. }
  26. //# sourceMappingURL=plugins-compat-data.js.map