source: imaps-frontend/node_modules/@babel/plugin-transform-member-expression-literals/lib/index.js@ 79a0317

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

F4 Finalna Verzija

  • Property mode set to 100644
File size: 781 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");
8var _core = require("@babel/core");
9var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
10 api.assertVersion(7);
11 return {
12 name: "transform-member-expression-literals",
13 visitor: {
14 MemberExpression: {
15 exit({
16 node
17 }) {
18 const prop = node.property;
19 if (!node.computed && _core.types.isIdentifier(prop) && !_core.types.isValidES3Identifier(prop.name)) {
20 node.property = _core.types.stringLiteral(prop.name);
21 node.computed = true;
22 }
23 }
24 }
25 }
26 };
27});
28
29//# sourceMappingURL=index.js.map
Note: See TracBrowser for help on using the repository browser.