babel-preset-nodely
Version:
Babel preset used by nodely.
109 lines (80 loc) • 1.71 kB
Markdown
Babel preset used by [nodely](https://github.com/dogma-io/nodely).
* [Installation](
* [Documentation](
* [Code of Conduct](
* [Contributing](
* [License](
**npm**
```bash
npm install babel-preset-nodely
```
**yarn**
```bash
yarn add babel-preset-nodely
```
To use this preset simply include it in your Babel configuration for example:
*.babelrc*
```json
{
"presets": ["nodely"]
}
```
By default this preset will enable loose mode but you can turn it off like so:
```json
{
"presets": [
[
"nodely",
{
"loose": false
}
]
]
}
```
Your build can target a specific minimum Node version:
```json
{
"presets": [
[
"nodely",
{
"targets": {
"node": 8
}
}
]
]
}
```
Your build can also target certain browser support:
```json
{
"presets": [
[
"nodely",
{
"targets": {
"browsers": ["last 2 versions", "ie10"],
}
}
]
]
}
```
Please see the [code of conduct](CODE_OF_CONDUCT.md).
Please see the [contributing guide](CONTRIBUTING.md).
[](LICENSE.md)
[]: https://img.shields.io/codecov/c/github/dogma-io/babel-preset-nodely.svg "Code Coverage"
[]: https://codecov.io/gh/dogma-io/babel-preset-nodely
[]: https://img.shields.io/npm/v/babel-preset-nodely.svg "NPM Version"
[]: https://www.npmjs.com/package/babel-preset-nodely