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:
691 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = void 0;
|
---|
7 | var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
---|
8 | var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
|
---|
9 | api.assertVersion(7);
|
---|
10 | return {
|
---|
11 | name: "transform-literals",
|
---|
12 | visitor: {
|
---|
13 | NumericLiteral({
|
---|
14 | node
|
---|
15 | }) {
|
---|
16 | if (node.extra && /^0[ob]/i.test(node.extra.raw)) {
|
---|
17 | node.extra = undefined;
|
---|
18 | }
|
---|
19 | },
|
---|
20 | StringLiteral({
|
---|
21 | node
|
---|
22 | }) {
|
---|
23 | if (node.extra && /\\u/i.test(node.extra.raw)) {
|
---|
24 | node.extra = undefined;
|
---|
25 | }
|
---|
26 | }
|
---|
27 | }
|
---|
28 | };
|
---|
29 | });
|
---|
30 |
|
---|
31 | //# sourceMappingURL=index.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.