Skip to content
Browse files

Use loose-envify instead of envify

This reduces the number of transitive dependencies and decreases the build time (by ~6% on my machine).
  • Loading branch information...
1 parent 2f24f89 commit ecf824cc2ae4c4231d3372f08c2b7c75a6e7bdfb @qerub qerub committed
Showing with 5 additions and 5 deletions.
  1. +1 −1 grunt/config/browserify.js
  2. +1 −1 package.json
  3. +3 −3 packages/react/package.json
View
2 grunt/config/browserify.js
@@ -2,7 +2,7 @@
'use strict';
-var envify = require('envify/custom');
+var envify = require('loose-envify/custom');
var grunt = require('grunt');
var UglifyJS = require('uglify-js');
var uglifyify = require('uglifyify');
View
2 package.json
@@ -32,7 +32,6 @@
"coveralls": "^2.11.6",
"del": "^2.0.2",
"derequire": "^2.0.3",
- "envify": "^3.0.0",
"eslint": "1.10.3",
"eslint-plugin-react": "4.1.0",
"eslint-plugin-react-internal": "file:eslint-rules",
@@ -49,6 +48,7 @@
"gulp-flatten": "^0.2.0",
"gzip-js": "~0.3.2",
"jest-cli": "^0.9.0",
+ "loose-envify": "^1.1.0",
"platform": "^1.1.0",
"run-sequence": "^1.1.4",
"through2": "^2.0.0",
View
6 packages/react/package.json
@@ -23,12 +23,12 @@
"node": ">=0.10.0"
},
"dependencies": {
- "envify": "^3.0.0",
- "fbjs": "^0.8.0-alpha.2"
+ "fbjs": "^0.8.0-alpha.2",
+ "loose-envify": "^1.1.0"
},
"browserify": {
"transform": [
- "envify"
+ "loose-envify"
]
}
}

0 comments on commit ecf824c

Please sign in to comment.
Something went wrong with that request. Please try again.