diff --git a/package.json b/package.json index 7135065dd1..18c3418d03 100644 --- a/package.json +++ b/package.json @@ -51,12 +51,6 @@ "event-emitter": "^0.3.1", "querystring": "^0.2.0" }, - "browserify": { - "transform": [ - "browserify-shim", - "envify" - ] - }, "browserify-shim": { "react": "global:React" } diff --git a/script/build b/script/build index e4f71438c9..77437c13d8 100755 --- a/script/build +++ b/script/build @@ -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