GT2/GT2-iOS/node_modules/babel-plugin-transform-es3-.../lib/index.js

24 lines
473 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
"use strict";
exports.__esModule = true;
exports.default = function (_ref) {
var t = _ref.types;
return {
visitor: {
ObjectProperty: {
exit: function exit(_ref2) {
var node = _ref2.node;
var key = node.key;
if (!node.computed && t.isIdentifier(key) && !t.isValidIdentifier(key.name)) {
node.key = t.stringLiteral(key.name);
}
}
}
}
};
};
module.exports = exports["default"];