so big
jonathanong opened this issue · 7 comments
Haven't forgotten about this. I can't really drop any deps, but once esprima gets the ES6 support in their npm package, that should help quite a bit (currently relying on the git package which doesn't allow for good deduping behavior IIRC)...
This just bit me too.
How about a connect-style plugin system so that the pac stuff is optional?
I was installing nodemailer-mailgun-transport, which depends on proxy-agent on a raspberry pi and it crashed due to running out of memory with the pac-* / esprima stuff.
Edit: when I installed this by itself it didn't crash, but it's still dead weight that slows down the load time due to requiring and parsing and compiling unused code.
Is tunnel a viable alternative?
Node v4 now the oldest maintained version and supports generators. That could help a little at least in dependencies?
Pretty sure this lib has been abandoned.
We ended up developing a paired client/server that goes over websockets (for the solution of tunneling, not proxying directly):
They work decently well.
Heads up, it "only" weight 4.5MB nowadays, maybe we can close this?