Skip to content

Reduce bundle size of @babel/codeframe #14213

@TimvdLippe

Description

@TimvdLippe

💻

  • Would you like to work on this feature?

What problem are you trying to solve?

Reduce the bundle size of projects that depend on @babel/codeframe

Describe the solution you'd like

We are working on reducing the bundle size of Prettier, tracked in prettier/prettier#12144

In prettier/prettier#12144 (comment) @daKmoR suggested to switch Chalk in @babel/codeframe to colorette, which should reduce the size of the package by 19kB (as Chalk pulls in 20kB and colorette is 1kB)

Can we remove large dependencies from @babel/codeframe and reduce its disk footprint?

Describe alternatives you've considered

Keep Chalk and keep a large bundle

Documentation, Adoption, Migration Strategy

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions