Skip to content

dogma-io/babel-preset-nodely

Repository files navigation

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

About

Babel preset used by nodely.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published