Skip to content

Commit a3578f0

Browse files
committed
Add loose-envify transform for browserify users
In the same manner as facebook/react, define the `loose-envify` transform in package.json (https://github.com/facebook/react/blob/c9504d99a55d544b38ad452a776250e3ea6ee68c/packages/react/package.json#L30).
1 parent 0616f6e commit a3578f0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"history": "^2.0.1",
3636
"hoist-non-react-statics": "^1.0.5",
3737
"invariant": "^2.2.1",
38-
"warning": "^2.1.0"
38+
"warning": "^2.1.0",
39+
"loose-envify": "^1.2.0"
3940
},
4041
"peerDependencies": {
4142
"react": "^0.14.0 || ^15.0.0"
@@ -86,6 +87,11 @@
8687
"webpack": "^1.12.14",
8788
"webpack-dev-middleware": "^1.6.1"
8889
},
90+
"browserify": {
91+
"transform": [
92+
"loose-envify"
93+
]
94+
},
8995
"tags": [
9096
"react",
9197
"router"

0 commit comments

Comments
 (0)