0.4.3 • Published 4 years ago
babel-preset-nodely v0.4.3
babel-preset-nodely

Babel preset used by nodely.
Table of Contents
Installation
npm
npm install babel-preset-nodelyyarn
yarn add babel-preset-nodelyDocumentation
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.