From b82907bff426285c5e2c63461b24ba9cd1ed6c1d Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Sun, 25 Oct 2015 19:01:24 +0500 Subject: [PATCH] add babel-runtime with regenerator inside --- lib/babel.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/babel.js b/lib/babel.js index 149423663..a6ca59100 100644 --- a/lib/babel.js +++ b/lib/babel.js @@ -7,7 +7,7 @@ var path = process.argv[2]; var options = { blacklist: hasGenerators ? ['regenerator'] : [], - optional: hasGenerators ? ['asyncToGenerator'] : [], + optional: hasGenerators ? ['asyncToGenerator', 'runtime'] : ['runtime'], plugins: [ createEspowerPlugin(require('babel-core'), { patterns: require('./enhance-assert').PATTERNS diff --git a/package.json b/package.json index 899209412..4b11dce38 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "ava-init": "^0.1.0", "babel-core": "^5.8.23", "babel-plugin-espower": "^1.0.0", + "babel-runtime": "^5.8.29", "bluebird": "^3.0.0", "chalk": "^1.0.0", "co": "^4.6.0",