Dashboard sipadu mbip
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.js 956B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _helperPluginUtils() {
  7. const data = require("@babel/helper-plugin-utils");
  8. _helperPluginUtils = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function _core() {
  14. const data = require("@babel/core");
  15. _core = function () {
  16. return data;
  17. };
  18. return data;
  19. }
  20. var _default = (0, _helperPluginUtils().declare)(api => {
  21. api.assertVersion(7);
  22. return {
  23. name: "transform-member-expression-literals",
  24. visitor: {
  25. MemberExpression: {
  26. exit({
  27. node
  28. }) {
  29. const prop = node.property;
  30. if (!node.computed && _core().types.isIdentifier(prop) && !_core().types.isValidES3Identifier(prop.name)) {
  31. node.property = _core().types.stringLiteral(prop.name);
  32. node.computed = true;
  33. }
  34. }
  35. }
  36. }
  37. };
  38. });
  39. exports.default = _default;