JSPM

babel-preset-es2015-node5

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 604
  • Score
    100M100P100Q117622F
  • License MIT

Babel preset to make node@5 fully ES2015 compatible.

Package Exports

  • babel-preset-es2015-node5

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-preset-es2015-node5) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-preset-es2015-node5

Babel preset to make node@5 fully ES2015 compatible.

Node@5 has great ES2015 support, this module just adds missing features:

Install

npm install --save-dev babel-preset-es2015-node5

Usage

Read "Configuring Babel 6" article for more information about babel@6 configuration.

.babelrc

{
  "presets": ["es2015-node5"]
}

Via CLI

babel script.js --presets es2015-node5

Via Node API

require('babel-core').transform('code', {
  presets: ['es2015-node5'],
})

License

MIT