

nodejs_compat is already? Under the hood, they may not be exactly what Node does, but if the input/output are the same, then aren't those modules/polyfills already being supported perpetually?nodejs_compat is already built into the runtime, so the flag only determines whether you actually have access to it or not.node_compat?node_compat and nodejs_compat, especially if you don't work with Workers/Pages often/this is your first experience with the platform.Wouldn't another solution be to pressure the packages people use that require those modules to switch to something runtime agnostic?yes, for sure, but there's a lot of such packages, also many are not properly maintained and the maintainers are not interested in switching to something else (and aren't even willing to accept contributions from us)
Or finding an alternative that doesn't require node_compat?that's practically the current situation, isn't it?
nodejs_compatnodejs_compatnodejs_compat webpack: (config, { isServer }) => {
config.resolve.alias = {
...config.resolve.alias,
path: 'node:path',
fs: 'node:fs',
stream: 'node:stream',
};
return config;
}node_compatnode_compat