Sha256: 4029f8f26458a416dd12a686d0fbcd1dbe9ce3d92ca499a4fb5bfbd76dbb90ef
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _helperPluginUtils() { var data = require("@babel/helper-plugin-utils"); _helperPluginUtils = function _helperPluginUtils() { return data; }; return data; } function _core() { var data = require("@babel/core"); _core = function _core() { return data; }; return data; } var _default = (0, _helperPluginUtils().declare)(function (api) { api.assertVersion(7); return { visitor: { ObjectMethod: function ObjectMethod(path) { var node = path.node; if (node.kind === "method") { var func = _core().types.functionExpression(null, node.params, node.body, node.generator, node.async); func.returnType = node.returnType; path.replaceWith(_core().types.objectProperty(node.key, func, node.computed)); } }, ObjectProperty: function ObjectProperty(_ref) { var node = _ref.node; if (node.shorthand) { node.shorthand = false; } } } }; }); exports.default = _default;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
condenser-0.0.4 | lib/condenser/processors/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js |