Skip to content

Decrease the bundle size #1847

Description

@hornta

Preliminary Checks

Description

Clerk is almost 50% of my bundle size. It's built with Vite and I only use it like this:

import Clerk from "@clerk/clerk-js";

export const clerkClient = new Clerk(
  import.meta.env.VITE_APP_CLERK_PUBLISHABLE_KEY,
);

It would be nice to have the react clerk package export Clerk so that I can initialize the client outside of React, then I wouldn't need to install the @clerk/clerk-js package.

This report is generated using this rollup plugin https://www.npmjs.com/package/rollup-plugin-analyzer

image

Affected Packages

@clerk/clerk-js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions