Urara-Blog/node_modules/.pnpm-store/v3/files/15/09ad025f1eb38c95159785b19f6db97d89960b145d6196dd3e3bd27ecf184d0da8bc080b801e65554ebb7310167978986ad99be75fc06cac18969c6312dd58
2022-08-14 01:14:53 +08:00

38 lines
No EOL
784 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _pluginSyntaxNumericSeparator = require("@babel/plugin-syntax-numeric-separator");
function remover({
node
}) {
var _extra$raw;
const {
extra
} = node;
if (extra != null && (_extra$raw = extra.raw) != null && _extra$raw.includes("_")) {
extra.raw = extra.raw.replace(/_/g, "");
}
}
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
return {
name: "proposal-numeric-separator",
inherits: _pluginSyntaxNumericSeparator.default,
visitor: {
NumericLiteral: remover,
BigIntLiteral: remover
}
};
});
exports.default = _default;