Skip to content

Rollup set to commonjs results in the whole package being in our bundle. #903

@edwinveldhuizen

Description

@edwinveldhuizen

supertokens-auth-react is currently a huge part of our web bundle.

This seems to be due to it's rollup config being set to "commonjs", while it should be "es" with preserveModules to true (since it's a react module, not a node-js module)
That would allow users to only import the SuperTokensWrapper for example and it being tree shaked properly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions