UNPKG

babel-core

Version:

Turn ES6 code into readable vanilla ES5 with source maps

25 lines (18 loc) 521 B
"use strict"; var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; }; exports.check = check; exports.Property = Property; var t = _interopRequire(require("../../../types")); function check(node) { return t.isProperty(node) && (node.method || node.shorthand); } function Property(node) { if (node.method) { node.method = false; } if (node.shorthand) { node.shorthand = false; node.key = t.removeComments(t.clone(node.key)); } } exports.__esModule = true;