BVB Source Codes

reactide Show index.js Source code

Return Download reactide: download index.js Source code - Download reactide Source code - Type:.js
  1. "use strict";
  2.  
  3. exports.__esModule = true;
  4.  
  5. exports.default = function () {
  6.   return {
  7.     visitor: {
  8.       ObjectMethod: function ObjectMethod(path) {
  9.         var node = path.node;
  10.  
  11.         if (node.kind === "method") {
  12.           var func = t.functionExpression(null, node.params, node.body, node.generator, node.async);
  13.           func.returnType = node.returnType;
  14.  
  15.           path.replaceWith(t.objectProperty(node.key, func, node.computed));
  16.         }
  17.       },
  18.       ObjectProperty: function ObjectProperty(_ref) {
  19.         var node = _ref.node;
  20.  
  21.         if (node.shorthand) {
  22.           node.shorthand = false;
  23.         }
  24.       }
  25.     }
  26.   };
  27. };
  28.  
  29. var _babelTypes = require("babel-types");
  30.  
  31. var t = _interopRequireWildcard(_babelTypes);
  32.  
  33. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
  34.  
  35. module.exports = exports["default"];
downloadindex.js Source code - Download reactide Source code
Related Source Codes/Software:
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top