A Babel preset for JavaScript projects.
$ npm install --save @smarterlabs/babel-preset
In your .babelrc
file:
{
"presets": [
"@smarterlabs/babel-preset"
]
}
Please refer to @babel/preset-env#targets for a list of available options.
For a list of browsers please see browserlist.
You may override our default list of targets by providing your own targets
key.
{
"presets": [["@smarterlabs/babel-preset", {
"targets": {
"chrome": 50,
"ie": 11,
"firefox": 45
}
}]]
}