Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lazy load nodemailer #3168

Closed

Conversation

anguskeatinge
Copy link

lazy load nodemailer

@balazsorban44
Copy link
Member

You can test it yourself, but this won't actually be tree-shaken. From my experience, when built with next build, nodemailer was still part of the bundle, and I could not even start a server with next dev. This is because (if my understanding is correct), Next.js requires dynamic imports in development even if it's in conditionals.

@anguskeatinge
Copy link
Author

Makes sense - thanks for the detailed explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core` providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants