Skip to content

Commit

Permalink
Fix browserification
Browse files Browse the repository at this point in the history
Browserify fails to resolve the "./http-proxy/" as "./http-proxy/index.js" but as "./http-proxy.js" (so nothing works)
Beeing explicit here does not cost much for http-proxy, yet it's intrinsically complicated for browserify to fix (as trailing slash might be used as a pollyfill shim for native/non-natives addons i.e.  require('url/') vs require('url') )
  • Loading branch information
131 authored and jcrugzz committed Oct 22, 2016
1 parent f5217d6 commit 8eddf45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var http = require('http'),
https = require('https'),
url = require('url'),
httpProxy = require('./http-proxy/');
httpProxy = require('./http-proxy/index.js');

/**
* Export the proxy "Server" as the main export.
Expand Down

0 comments on commit 8eddf45

Please sign in to comment.