Urara-Blog/node_modules/.pnpm-store/v3/files/2f/806c6e0f5fa4df3f437ece76f41fc20e3f59986c1ed856ab1b630284897a0c0a0d97ae351e6d785e12d37f74b1c315e0612f6e1362dbaabea0a5c9f2b55740
2022-08-14 01:14:53 +08:00

35 lines
No EOL
673 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _default = (0, _helperPluginUtils.declare)(api => {
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;
}
}
}
};
});
exports.default = _default;