summaryrefslogtreecommitdiff
path: root/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/plugin-transform-numeric-separator/lib/index.js')
-rw-r--r--node_modules/@babel/plugin-transform-numeric-separator/lib/index.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js b/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js
new file mode 100644
index 00000000..f5b56a61
--- /dev/null
+++ b/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js
@@ -0,0 +1,32 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _helperPluginUtils = require("@babel/helper-plugin-utils");
+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: "transform-numeric-separator",
+ inherits: require("@babel/plugin-syntax-numeric-separator").default,
+ visitor: {
+ NumericLiteral: remover,
+ BigIntLiteral: remover
+ }
+ };
+});
+exports.default = _default;
+
+//# sourceMappingURL=index.js.map