fix: use upgraded require optional#1743
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nextauthjs/next-auth/964cDCS73H27Y5dRF62r8hMmRMXu |
|
🎉 This PR is included in version 4.0.0-next.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
@balazsorban44 Yeah strange, right? I couldn't find Anyway, is your |
|
|
* chore(deps): switch back to (updated) require_optional * fix: use @balazsorban/require-optional
What:
Having another stab at #1682
Why:
The end goal is to not bundle/require
typeormandnodemailer, if someone doesn't use any of these in their project.How:
I took
require_optionalas a base, but published my own version under@balazsorban/require-optional. The difference is that it will use the now seemingly established fieldspeerDependenciesandpeerDependenciesMeta, instead ofpeerOptionalDependencies, which doesn't appear to be anywhere. In fact, googling it will point to one of this repository's issue with mongodb!Side note, mongodb themselves decided to turn away from
peerOptionalDependencies: https://jira.mongodb.org/browse/NODE-2867Checklist: