tl;dr, `node_compat` is old and polyfills a bunch of stuff. It's not great, a bit slow, adds to bund

tl;dr, node_compat is old and polyfills a bunch of stuff. It's not great, a bit slow, adds to bundle size, and the polyfills aren't perfect. nodejs_compat is Cloudflare's actual Node.js compatibility built right into the workerd runtime. There's some DX pain aroound them both existing right now which I wrote up a bit at https://github.com/cloudflare/workers-sdk/issues/4082
Was this page helpful?