Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
createhash: only call module.require if it exists (#466)
Apparently Next.JS "Turbopack" runs code in a weird semi-Node environment that doesn't have module.require. We don't want to call require directly because that makes other bundlers put in polyfills. So make Turbopack use sha.js instead of just throwing. Non-ideal but better than what we have today. For apollographql/apollo-server#8004 Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com>
- Loading branch information