1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@babel/plugin-transform-literals/lib/index.js

32 lines
694 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
2024-01-16 21:26:16 +08:00
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
2023-12-18 13:12:25 +08:00
api.assertVersion(7);
return {
name: "transform-literals",
visitor: {
NumericLiteral({
node
}) {
if (node.extra && /^0[ob]/i.test(node.extra.raw)) {
node.extra = undefined;
}
},
StringLiteral({
node
}) {
if (node.extra && /\\[u]/gi.test(node.extra.raw)) {
node.extra = undefined;
}
}
}
};
});
2024-01-16 21:26:16 +08:00
//# sourceMappingURL=index.js.map