babel/lib/6to5/transformation/transformers/es6-property-name-shorthand.js
2015-01-18 18:44:08 +11:00

11 lines
222 B
JavaScript

"use strict";
var t = require("../../types");
var _ = require("lodash");
exports.Property = function (node) {
if (!node.shorthand) return;
node.shorthand = false;
node.key = t.removeComments(_.clone(node.key));
};