Skip to content

Commit 0a7298c

Browse files
committed
[removed] browserify.transforms from package.json
Browserify transforms are only specified in the build script. Fixes #105
1 parent 615757a commit 0a7298c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

package.json

-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@
5151
"event-emitter": "^0.3.1",
5252
"querystring": "^0.2.0"
5353
},
54-
"browserify": {
55-
"transform": [
56-
"browserify-shim",
57-
"envify"
58-
]
59-
},
6054
"browserify-shim": {
6155
"react": "global:React"
6256
}

script/build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
mkdir -p dist
3-
NODE_ENV=production node_modules/.bin/browserify modules/main.js --detect-globals false -s ReactRouter > dist/react-router.js
3+
NODE_ENV=production node_modules/.bin/browserify modules/main.js -t browserify-shim -t envify --detect-globals false -s ReactRouter > dist/react-router.js
44
node_modules/.bin/uglifyjs dist/react-router.js --compress warnings=false > dist/react-router.min.js

0 commit comments

Comments
 (0)