Skip to content

refactor(create-vite): use picocolors#18085

Merged
patak-cat merged 2 commits into
mainfrom
create-vite-picocolors
Sep 12, 2024
Merged

refactor(create-vite): use picocolors#18085
patak-cat merged 2 commits into
mainfrom
create-vite-picocolors

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented Sep 12, 2024

Description

Use picocolors instead of kolorist as it's smaller and faster

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label Sep 12, 2024
Copy link
Copy Markdown
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually kolorist is slightly smaller because of tree-shaking (kolorist is 749B and picocolors is 847B), but I think it's good to align with the vite core package.

@bluwy
Copy link
Copy Markdown
Member Author

bluwy commented Sep 12, 2024

Ah interesting. Yeah I was comparing the package size. Forgot that Vite bundles it.

@patak-cat patak-cat merged commit ba37df0 into main Sep 12, 2024
@patak-cat patak-cat deleted the create-vite-picocolors branch September 12, 2024 09:30
moonlitusun pushed a commit to moonlitusun/vite that referenced this pull request May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore Doesn't change code behavior (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants