Skip to content

Commit d69f9c1

Browse files
committed
Add the babel plugin to transform let to var
1 parent 372b684 commit d69f9c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"transform-es2015-spread",
66
"transform-es2015-classes",
77
"transform-react-constant-elements",
8-
"transform-react-inline-elements"
8+
"transform-react-inline-elements",
9+
"transform-es2015-block-scoping"
910
]
1011
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket.io-react",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "A High-Order Component to connect React and Socket.io",
55
"main": "build/index.js",
66
"scripts": {
@@ -26,6 +26,7 @@
2626
"babel": "6.5.2",
2727
"babel-cli": "6.6.5",
2828
"babel-plugin-transform-class-properties": "6.6.0",
29+
"babel-plugin-transform-es2015-block-scoping": "6.20.0",
2930
"babel-plugin-transform-es2015-classes": "6.6.5",
3031
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
3132
"babel-plugin-transform-es2015-spread": "6.6.5",

0 commit comments

Comments
 (0)