From 63970be534ada0ed93fe33923d4720fcf24c11cb Mon Sep 17 00:00:00 2001 From: azu Date: Thu, 9 Apr 2015 22:17:13 +0900 Subject: [PATCH 1/2] [WIP] babel5 From 0c782a06470730164e7f772ba5c33f76a2218f22 Mon Sep 17 00:00:00 2001 From: azu Date: Thu, 9 Apr 2015 22:18:36 +0900 Subject: [PATCH 2/2] Breaking Change: Babel 5.x support --- .babelrc | 2 +- README.md | 4 ++-- package.json | 4 ++-- test_loader/espower-traceur-loader.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.babelrc b/.babelrc index 252f473..12606a3 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,3 @@ { - "experimental": true + "stage": 0 } diff --git a/README.md b/README.md index d7417e8..00cbb81 100755 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Babel has many transform options. - [Options · Babel](https://babeljs.io/docs/usage/options/ "Options · Babel") -`espower-babel` support babel transform options with `.babelrc` +`espower-babel` support babel transform options with [.babelrc](http://babeljs.io/docs/usage/babelrc/ "babelrc"). `espower-babel` read `${cwd}/.babelrc` if exists. @@ -158,7 +158,7 @@ also can manually configure babel transform options. ```js require('espower-babel')({ babelrc: { - experimental: true + stage: 0 } }) ``` diff --git a/package.json b/package.json index ff45059..bf3c466 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "url": "https://github.com/azu/espower-babel/issues" }, "dependencies": { - "babel-core": "^4.7.16", - "convert-source-map": "^0.4.1", + "babel-core": "^5.0", + "convert-source-map": "^1.0.0", "espower-source": "^0.10.0", "minimatch": "^2.0.1", "xtend": "^4.0.0" diff --git a/test_loader/espower-traceur-loader.js b/test_loader/espower-traceur-loader.js index 650908d..c6a58a5 100755 --- a/test_loader/espower-traceur-loader.js +++ b/test_loader/espower-traceur-loader.js @@ -20,6 +20,6 @@ require('..')({ ] }, babelrc: { - experimental: true + stage: 0 } });