Skip to content

Commit ae8ca4d

Browse files
committed
Add .babelrc & Move to babel 6
1 parent c901e43 commit ae8ca4d

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "react", "stage-0"],
3+
}

package.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "git+ssh://git@github.com/Rezonans/redux-async-connect.git"
99
},
1010
"scripts": {
11-
"build": "babel ./modules --stage 0 --loose all -d lib --ignore '__tests__'",
11+
"build": "babel ./modules -d lib --ignore '__tests__'",
1212
"lint": "eslint modules",
1313
"start": "babel-node example/server.js",
1414
"test": "npm run lint && karma start",
@@ -33,10 +33,13 @@
3333
"react-redux": "4.0.x"
3434
},
3535
"devDependencies": {
36-
"babel": "^5.8.34",
37-
"babel-core": "^5.8.34",
38-
"babel-eslint": "^3.1.23",
39-
"babel-loader": "^5.4.0",
36+
"babel-cli": "^6.4.5",
37+
"babel-core": "^6.4.5",
38+
"babel-eslint": "^5.0.0-beta6",
39+
"babel-loader": "^6.2.1",
40+
"babel-preset-es2015": "^6.3.13",
41+
"babel-preset-react": "^6.3.13",
42+
"babel-preset-stage-0": "^6.3.13",
4043
"eslint": "1.4.1",
4144
"eslint-config-rackt": "1.0.0",
4245
"eslint-plugin-react": "3.3.2",

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626

2727
module: {
2828
loaders: [
29-
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel?stage=0&loose=all' }
29+
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel' }
3030
]
3131
},
3232

0 commit comments

Comments
 (0)