From 0a7298c6aeb5e3b26be31f601a7acf3705fba65b Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 23 Jul 2014 07:16:43 -0700 Subject: [PATCH] [removed] browserify.transforms from package.json Browserify transforms are only specified in the build script. Fixes #105 --- package.json | 6 ------ script/build | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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