web 3d图形渲染器
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.

39 lines
921 B

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _helperPluginUtils = require("@babel/helper-plugin-utils");
  7. var _pluginSyntaxNumericSeparator = _interopRequireDefault(require("@babel/plugin-syntax-numeric-separator"));
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. function remover({
  10. node
  11. }) {
  12. var _extra$raw;
  13. const {
  14. extra
  15. } = node;
  16. if (extra == null ? void 0 : (_extra$raw = extra.raw) == null ? void 0 : _extra$raw.includes("_")) {
  17. extra.raw = extra.raw.replace(/_/g, "");
  18. }
  19. }
  20. var _default = (0, _helperPluginUtils.declare)(api => {
  21. api.assertVersion(7);
  22. return {
  23. name: "proposal-numeric-separator",
  24. inherits: _pluginSyntaxNumericSeparator.default,
  25. visitor: {
  26. NumericLiteral: remover,
  27. BigIntLiteral: remover
  28. }
  29. };
  30. });
  31. exports.default = _default;