Babel preset for two ES3 transforms
transform-es3-member-expression-literals
andtransform-es3-property-literals
This presets adds the two transforms for ES3 syntax compatibility.
$ npm install --save-dev babel-preset-es3
.babelrc
{
"presets": ["es3"]
}
$ babel script.js --preset es3
require("babel-core").transform("code", {
presets: ["es3"]
});