0.4.3 • Published 3 years ago

babel-preset-nodely v0.4.3

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

babel-preset-nodely NPM Coverage

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.

License

MIT