babel-preset-es3
v1.0.1
Published
Preset for Babel's ES3 transformations
Downloads
2,804
Readme
babel-preset-es3
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.
Install
$ npm install --save-dev babel-preset-es3
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["es3"]
}
Via CLI
$ babel script.js --preset es3
Via Node API
require("babel-core").transform("code", {
presets: ["es3"]
});