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

Including UserProvider in my bundle added 100kbs #39

Closed
kaspnilsson opened this issue Mar 16, 2022 · 3 comments · Fixed by #92
Closed

Including UserProvider in my bundle added 100kbs #39

kaspnilsson opened this issue Mar 16, 2022 · 3 comments · Fixed by #92
Labels

Comments

@kaspnilsson
Copy link

kaspnilsson commented Mar 16, 2022

These helpers are great, but seem to include a bunch of Supabase UI that I don't want.
Screen Shot 2022-03-15 at 5 48 37 PM

I'm only using useUser and supabaseClient from @supabase/supabase-auth-helpers/nextjs and UserProvider from @supabase/supabase-auth-helpers/react. Is this working as intended?

@kaspnilsson
Copy link
Author

Looks like this is only happening due to a re-export of the auth component. Could this lib just be a peer dependency?

https://github.com/supabase-community/supabase-auth-helpers/blob/e188cb903cd532aa438729fda4269bed53b3fff5/src/react/index.tsx#L6

@thorwebdev
Copy link
Member

thorwebdev commented Mar 20, 2022

Yah, we want to break out the UI stuff into its own sub module and build a better rollup pipeline in the future.

@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants