Skip to content

Commit ecf824c

Browse files
committed
Use loose-envify instead of envify
This reduces the number of transitive dependencies and decreases the build time (by ~6% on my machine).
1 parent 2f24f89 commit ecf824c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

grunt/config/browserify.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'use strict';
44

5-
var envify = require('envify/custom');
5+
var envify = require('loose-envify/custom');
66
var grunt = require('grunt');
77
var UglifyJS = require('uglify-js');
88
var uglifyify = require('uglifyify');

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"coveralls": "^2.11.6",
3333
"del": "^2.0.2",
3434
"derequire": "^2.0.3",
35-
"envify": "^3.0.0",
3635
"eslint": "1.10.3",
3736
"eslint-plugin-react": "4.1.0",
3837
"eslint-plugin-react-internal": "file:eslint-rules",
@@ -49,6 +48,7 @@
4948
"gulp-flatten": "^0.2.0",
5049
"gzip-js": "~0.3.2",
5150
"jest-cli": "^0.9.0",
51+
"loose-envify": "^1.1.0",
5252
"platform": "^1.1.0",
5353
"run-sequence": "^1.1.4",
5454
"through2": "^2.0.0",

packages/react/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"node": ">=0.10.0"
2424
},
2525
"dependencies": {
26-
"envify": "^3.0.0",
27-
"fbjs": "^0.8.0-alpha.2"
26+
"fbjs": "^0.8.0-alpha.2",
27+
"loose-envify": "^1.1.0"
2828
},
2929
"browserify": {
3030
"transform": [
31-
"envify"
31+
"loose-envify"
3232
]
3333
}
3434
}

0 commit comments

Comments
 (0)