One thing stops me from migrating to Bun: lack of SOCKS4/5 support (specifically - ProxyAgent).
I see that is not implemented in local undici analog.
Is there any legit workaround to use original undici?
I've tried this one in package.json:
"dependencies": {
"@undicijs/undici": "npm:[email protected]"
}
And use import * as undici from "@undicijs/undici"; instead of import * as undici from "undici"; - it works in my own code but breaks in existing packages that work with undici directly - needs patching.
Is there any way without patching packages?
Maybe env flag or something?