fix transform-es3-property-literals

This commit is contained in:
Andres Suarez
2015-10-29 22:57:23 -07:00
parent 3a7d258c5c
commit eb5507d644

View File

@@ -2,7 +2,7 @@ export default function ({ types: t }) {
return {
visitor: {
ObjectProperty: {
exit(node) {
exit({node}) {
let key = node.key;
if (!node.computed && t.isIdentifier(key) && !t.isValidIdentifier(key.name)) {
// default: "bar" -> "default": "bar"