UNPKG

babel-core

Version:

Turn ES6 code into readable vanilla ES5 with source maps

25 lines (18 loc) 541 B
"use strict"; var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; }; exports.check = check; exports.Property = Property; var t = _interopRequireWildcard(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;