pbojinov
3/12/2016 - 12:01 AM

Easily using ES6 on npm projects

Easily using ES6 on npm projects

npm install --save babel-cli babel-core babel-loader babel-preset-es2015

inside your package.json

"scripts": {
    "build": "./node_modules/.bin/babel --presets es2015 ./index.js"
  },