Skip to content

Commit 1e427d8

Browse files
committed
add babel transform intend to fix #84
1 parent 66dd8c5 commit 1e427d8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.babelrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
],
77
"plugins": [
88
"add-module-exports",
9-
"lodash"
9+
"lodash",
10+
"transform-class-properties",
11+
["transform-es2015-classes", { "loose": true }],
12+
"transform-proto-to-assign"
1013
]
1114
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"babel-cli": "^6.10.1",
2929
"babel-plugin-add-module-exports": "^0.2.1",
3030
"babel-plugin-lodash": "^3.2.5",
31+
"babel-plugin-transform-proto-to-assign": "^6.9.0",
3132
"babel-preset-es2015": "^6.9.0",
3233
"babel-preset-react": "^6.11.1",
3334
"babel-preset-stage-0": "^6.5.0",

0 commit comments

Comments
 (0)