Skip to content

Commit

Permalink
Use loose-envify instead of envify
Browse files Browse the repository at this point in the history
This reduces the number of transitive dependencies and decreases the build time (by ~6% on my machine).
  • Loading branch information
qerub committed Mar 19, 2016
1 parent 2f24f89 commit 5210b01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion grunt/config/browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

'use strict';

var envify = require('envify/custom');
var envify = require('loose-envify/loose-envify');
var grunt = require('grunt');
var UglifyJS = require('uglify-js');
var uglifyify = require('uglifyify');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 5210b01

Please sign in to comment.