Skip to content

Commit 3a2d890

Browse files
committed
arrow functions
1 parent 2114d78 commit 3a2d890

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"presets" : ["es2015", "react"]
2+
"presets" : ["es2015", "react"],
3+
"plugins": ['transform-class-properties']
34
}

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "My React template for prototyping",
55
"main": "server.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"dev": "webpack -d --watch",
8+
"build": "webpack -p"
89
},
910
"repository": {
1011
"type": "git",
@@ -19,6 +20,8 @@
1920
"devDependencies": {
2021
"babel-core": "^6.24.0",
2122
"babel-loader": "^6.4.1",
23+
"babel-plugin-transform-class-properties": "^6.23.0",
24+
"babel-plugin-transform-es2015-arrow-functions": "^6.22.0",
2225
"babel-preset-es2015": "^6.24.0",
2326
"babel-preset-react": "^6.23.0",
2427
"path": "^0.12.7",
@@ -27,9 +30,5 @@
2730
"dependencies": {
2831
"react": "^15.4.2",
2932
"react-dom": "^15.4.2"
30-
},
31-
"scripts": {
32-
"dev": "webpack -d --watch",
33-
"build" : "webpack -p"
3433
}
3534
}

0 commit comments

Comments
 (0)