From 5271bd812b6f8eebc692626146f1bf4a5868ebfd Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Sun, 8 Nov 2015 15:50:05 +0000 Subject: [PATCH] Upgrade to Babel v6 --- app.js | 6 +++++- package.json | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) 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",