plugins-compat-data.js 1.0 KB

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.js");
  10. const keys = Object.keys;
  11. const plugins = exports.plugins = filterAvailable(_plugins);
  12. const pluginsBugfixes = exports.pluginsBugfixes = filterAvailable(_pluginBugfixes);
  13. const overlappingPlugins = exports.overlappingPlugins = filterAvailable(_overlappingPlugins);
  14. {
  15. overlappingPlugins["syntax-import-attributes"] = ["syntax-import-assertions"];
  16. }
  17. function filterAvailable(data) {
  18. const result = {};
  19. for (const plugin of keys(data)) {
  20. if (hasOwnProperty.call(_availablePlugins.default, plugin)) {
  21. result[plugin] = data[plugin];
  22. }
  23. }
  24. return result;
  25. }
  26. //# sourceMappingURL=plugins-compat-data.js.map