Property literals transform

Turn valid identifier property key literals into identifiers.

Example

In

var foo = {
  "bar": function () {}
};

Out

var foo = {
  bar: function () {}
};

Installation

$ npm install babel-plugin-transform-property-literals

Usage

Add the following line to your .babelrc file:

{
  "plugins": ["transform-property-literals"]
}