Skip to content

createBrowserClient brings in a bunch of server deps to the client #92

Description

@natew

Bug report

This brings ws, crypto, tons of node APIs, etc, causing a much bigger bundle to polyfill or the need to do lots of configuration.

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Image

To Reproduce

Importing @supabase/ssr createBrowserClient in any Vite app should do it.

Expected behavior

Should export @supabase/ssr/client so we can import just the client code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions