babel-preset-nodely
v0.4.3
Published
Babel preset used by nodely.
Downloads
10
Readme
babel-preset-nodely
Babel preset used by nodely.
Table of Contents
Installation
npm
npm install babel-preset-nodely
yarn
yarn add babel-preset-nodely
Documentation
To use this preset simply include it in your Babel configuration for example:
.babelrc
{
"presets": ["nodely"]
}
Loose mode
By default this preset will enable loose mode but you can turn it off like so:
{
"presets": [
[
"nodely",
{
"loose": false
}
]
]
}
Targets
Your build can target a specific minimum Node version:
{
"presets": [
[
"nodely",
{
"targets": {
"node": 8
}
}
]
]
}
Your build can also target certain browser support:
{
"presets": [
[
"nodely",
{
"targets": {
"browsers": ["last 2 versions", "ie10"],
}
}
]
]
}
Code of Conduct
Please see the code of conduct.
Contributing
Please see the contributing guide.