Skip to content

Commit 3710c13

Browse files
committed
Shim react dependency for browser
1 parent 6bdb868 commit 3710c13

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"babel-eslint": "^4.0.5",
2626
"babelify": "^6.1.3",
2727
"browserify": "^11.0.0",
28+
"browserify-shim": "^3.8.10",
2829
"del": "^1.2.0",
2930
"eslint": "^1.0.0",
3031
"eslint-config-airbnb": "0.0.7",
@@ -63,6 +64,14 @@
6364
"peerDependencies": {
6465
"react": "^0.13.3"
6566
},
67+
"browserify": {
68+
"transform": [
69+
"browserify-shim"
70+
]
71+
},
72+
"browserify-shim": {
73+
"react": "global:React"
74+
},
6675
"files": [
6776
"dist/",
6877
"LICENSE",

0 commit comments

Comments
 (0)