source: imaps-frontend/node_modules/@babel/plugin-transform-numeric-separator/lib/index.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 780 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7var _helperPluginUtils = require("@babel/helper-plugin-utils");
8function remover({
9 node
10}) {
11 var _extra$raw;
12 const {
13 extra
14 } = node;
15 if (extra != null && (_extra$raw = extra.raw) != null && _extra$raw.includes("_")) {
16 extra.raw = extra.raw.replace(/_/g, "");
17 }
18}
19var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
20 api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
21 return {
22 name: "transform-numeric-separator",
23 manipulateOptions: (_, parser) => parser.plugins.push("numericSeparator"),
24 visitor: {
25 NumericLiteral: remover,
26 BigIntLiteral: remover
27 }
28 };
29});
30
31//# sourceMappingURL=index.js.map
Note: See TracBrowser for help on using the repository browser.