diff --git a/app.js b/app.js index 6b69842..bec59cc 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,8 @@ -require('babel/register'); +require('babel-polyfill'); +require('babel-core/register')({ + presets: ['es2015'] +}); + var config = require('config'); var app = require('koa')(); var router = require('./router'); diff --git a/package.json b/package.json index a26297f..4715e40 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,9 @@ "lint": "./node_modules/.bin/eslint ." }, "dependencies": { - "babel": "^5.8.23", + "babel-core": "^6.1.2", + "babel-polyfill": "^6.0.16", + "babel-preset-es2015": "^6.1.2", "config": "^1.16.0", "jade": "^1.11.0", "koa": "^1.1.0",