Skip to content

[performance] 200B win opportunity, clsx/lite #40366

Open
@oliviertassinari

Description

@oliviertassinari

Summary 💡

There seems to be an opportunity to shave bundle size with https://github.com/lukeed/clsx/releases/tag/v2.1.0

The full version looks bigger by about this amount https://bundlephobia.com/package/clsx@2.1.0.

For the source, we already have https://www.npmjs.com/package/babel-plugin-optimize-clsx that rewrites everything, so maybe the solution could be executed there.

Examples 🌈

No response

Motivation 🔦

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions