Skip to content

Commit

Permalink
[removed] browserify.transforms from package.json
Browse files Browse the repository at this point in the history
Browserify transforms are only specified in the build script.

Fixes #105
  • Loading branch information
mjackson committed Jul 23, 2014
1 parent 615757a commit 0a7298c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@
"event-emitter": "^0.3.1",
"querystring": "^0.2.0"
},
"browserify": {
"transform": [
"browserify-shim",
"envify"
]
},
"browserify-shim": {
"react": "global:React"
}
Expand Down
2 changes: 1 addition & 1 deletion script/build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
mkdir -p dist
NODE_ENV=production node_modules/.bin/browserify modules/main.js --detect-globals false -s ReactRouter > dist/react-router.js
NODE_ENV=production node_modules/.bin/browserify modules/main.js -t browserify-shim -t envify --detect-globals false -s ReactRouter > dist/react-router.js
node_modules/.bin/uglifyjs dist/react-router.js --compress warnings=false > dist/react-router.min.js

0 comments on commit 0a7298c

Please sign in to comment.