From 52a47b9e8eb0dc0df85aeb113a1d9e1f9dae902c Mon Sep 17 00:00:00 2001 From: kareniel Date: Wed, 4 May 2016 11:15:22 -0400 Subject: [PATCH] Copy .babelrc to async example folder. Change babel preset to es2015. Update babel-core and babel-loader module versions in package.json. Comment out polyfill import in index.js. --- examples/async/.babelrc | 3 +++ examples/async/index.js | 2 +- examples/async/package.json | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 examples/async/.babelrc diff --git a/examples/async/.babelrc b/examples/async/.babelrc new file mode 100644 index 0000000..c13c5f6 --- /dev/null +++ b/examples/async/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015"] +} diff --git a/examples/async/index.js b/examples/async/index.js index fb08b83..84060de 100644 --- a/examples/async/index.js +++ b/examples/async/index.js @@ -1,4 +1,4 @@ -import 'babel-core/polyfill'; +//import 'babel-core/polyfill'; import angular from 'angular'; import ngRedux from 'ng-redux'; import thunk from 'redux-thunk'; diff --git a/examples/async/package.json b/examples/async/package.json index 42ab389..cad1b1f 100644 --- a/examples/async/package.json +++ b/examples/async/package.json @@ -16,6 +16,9 @@ "homepage": "https://github.com/wbuchwalter/ngRedux#readme", "dependencies": { "angular": "^1.4.4", + "babel-core": "^6.8.0", + "babel-loader": "^6.2.4", + "babel-preset-es2015": "^6.6.0", "ng-redux": "^3.0.0", "redux": "^3.0.0", "redux-logger": "^2.0.2",