How to use the es3.propertyLiterals transformer.
Turn reserved word properties into literals.
require("babel").transform("code", { optional: ["minification.propertyLiterals"] });
$ babel --optional minification.propertyLiterals script.js
In
var foo = {
catch: function () {}
};
Out
var foo = {
"catch": function () {}
};