Next.js Edge runtime polyfills optional Node API process.getBuiltinModule with a throwing stub, breaking import of js-bson
The Edge Runtime process polyfill in Next.js defines process.getBuiltinModule as a throwing stub, violating Node's optional API contract. Packages such as js-bson that use feature detection (e.g., `if (globalThis.process?.getBuiltinModule)`) call the stub and trigger a runtime error, causing 500 errors in edge routes.
