From 8eddf45f2a043e4e1b3f6e33c304e68fe7e1c406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Leurent?= <131.js@cloudyks.org> Date: Wed, 20 Jul 2016 12:23:19 +0200 Subject: [PATCH] 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') ) --- lib/http-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http-proxy.js b/lib/http-proxy.js index 365aced..c25de73 100644 --- a/lib/http-proxy.js +++ b/lib/http-proxy.js @@ -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.