plugins-compat-data.js 824 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.pluginsBugfixes = exports.plugins = void 0;
  6. var _plugins = require("@babel/compat-data/plugins");
  7. var _pluginBugfixes = require("@babel/compat-data/plugin-bugfixes");
  8. var _availablePlugins = require("./available-plugins");
  9. const pluginsFiltered = {};
  10. exports.plugins = pluginsFiltered;
  11. const bugfixPluginsFiltered = {};
  12. exports.pluginsBugfixes = bugfixPluginsFiltered;
  13. for (const plugin of Object.keys(_plugins)) {
  14. if (Object.hasOwnProperty.call(_availablePlugins.default, plugin)) {
  15. pluginsFiltered[plugin] = _plugins[plugin];
  16. }
  17. }
  18. for (const plugin of Object.keys(_pluginBugfixes)) {
  19. if (Object.hasOwnProperty.call(_availablePlugins.default, plugin)) {
  20. bugfixPluginsFiltered[plugin] = _pluginBugfixes[plugin];
  21. }
  22. }