Skip to content

Commit 1355683

Browse files
committed
fix: improve mobile browser compatible
add babel-plugin-transform-runtime close gitalk#25
1 parent c7fd75e commit 1355683

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
"es2015",
55
"stage-2",
66
"react"
7+
],
8+
"plugins": [
9+
"transform-runtime"
710
]
811
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"babel-eslint": "7.2.3",
2525
"babel-jest": "20.0.3",
2626
"babel-loader": "7.1.1",
27+
"babel-plugin-transform-runtime": "6.23.0",
2728
"babel-preset-es2015": "6.24.1",
2829
"babel-preset-react": "6.24.1",
2930
"babel-preset-stage-2": "6.24.1",

0 commit comments

Comments
 (0)