8000 Fix browserification · sekmet/node-http-proxy@8eddf45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8eddf45

Browse files
131jcrugzz
authored andcommitted
Fix browserification
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') )
1 parent f5217d6 commit 8eddf45

File tree

1 file changed

+1
-1
lines changed

lib/http-proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var http = require('http'),
22
https = require('https'),
33
url = require('url'),
4-
httpProxy = require('./http-proxy/');
4+
httpProxy = require('./http-proxy/index.js');
55

66
/**
77
* Export the proxy "Server" as the main export.

0 commit comments

Comments
 (0)
0