Dashboard sipadu mbip
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.

index.js 771B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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-reserved-words",
  24. visitor: {
  25. "BindingIdentifier|ReferencedIdentifier"(path) {
  26. if (!_core().types.isValidES3Identifier(path.node.name)) {
  27. path.scope.rename(path.node.name);
  28. }
  29. }
  30. }
  31. };
  32. });
  33. exports.default = _default;