ES3 property literals transform

Turn reserved word property keys into literals.

Example

In

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

Out

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

Installation

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

Usage

Add the following line to your .babelrc file:

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