Skip to content

Commit 10d6c15

Browse files
fix(webpack): workaround for outdated http-browserify
1 parent 368c5ba commit 10d6c15

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

config/webpack.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ const shared = {
2626
path.resolve(__dirname, '../node_modules')
2727
],
2828
alias: {
29-
zlib: 'browserify-zlib'
29+
// These are needed because node-libs-browser depends on outdated
30+
// versions
31+
//
32+
// Can be dropped once https://github.com/devongovett/browserify-zlib/pull/18
33+
// is shipped
34+
zlib: 'browserify-zlib',
35+
// Can be dropped once https://github.com/webpack/node-libs-browser/pull/41
36+
// is shipped
37+
http: 'stream-http'
3038
}
3139
},
3240
resolveLoader: {

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"gulp-tag-version": "^1.3.0",
4949
"gulp-uglify": "^2.0.0",
5050
"gulp-util": "^3.0.7",
51-
"https-browserify": "0.0.1",
5251
"istanbul": "^0.4.5",
5352
"json-loader": "^0.5.4",
5453
"karma": "^1.3.0",

0 commit comments

Comments
 (0)