GT2/GT2-Android/node_modules/babel-preset-es2015-node
Ren Ren Juan c5fd23b54f Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
..
.npmignore Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
LICENSE Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
README.md Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
index.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
package.json Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00

README.md

babel-preset-es2015-node

npm version

Babel preset for the minimum necessary babel-preset-es2015 plugins needed for your version of node

This preset automatically determines which version of node you are using via process.version and sets the minimum necessary babel-preset-es2015 plugins accordingly.

All versions of node ≥4 are supported.

Note: the major version of this package corresponds to the compatible major version of Babel (i.e. use babel-preset-es2015-node@6 with babel-cli@6.

Install

$ npm install --save-dev babel-preset-es2015-node

Usage

.babelrc

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

Via CLI

$ babel script.js --preset es2015-node

Via Node API

require("babel-core").transform("code", {
  presets: ["es2015-node"]
});