This will require [Next.js](https://github.com/vercel/next.js/)' list of NodeJS built-ins, which we'll need to keep track of. For example: - [ ] `fs` - from `scripts/build-native.ts` - [ ] `path` - from `scripts/build-native.ts` - [ ] `http` - from `packages/next/src/server/base-http/node.ts` - [ ] `stream` - from `packages/next/src/server/app-render/use-flight-response.tsx` - [ ] `async_hooks` - from `packages/next/src/server/web/sandbox/context.ts` - [ ] `crypto` - from `packages/next/src/trace/shared.ts` - [ ] (etc)
This will require Next.js' list of NodeJS built-ins, which we'll need to keep track of. For example:
fs- fromscripts/build-native.tspath- fromscripts/build-native.tshttp- frompackages/next/src/server/base-http/node.tsstream- frompackages/next/src/server/app-render/use-flight-response.tsxasync_hooks- frompackages/next/src/server/web/sandbox/context.tscrypto- frompackages/next/src/trace/shared.ts