Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(create-vite): use picocolors #18085

Merged
merged 2 commits into from
Sep 12, 2024
Merged

refactor(create-vite): use picocolors #18085

merged 2 commits into from
Sep 12, 2024

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Sep 12, 2024

Description

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

Copy link

stackblitz bot commented Sep 12, 2024

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
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
Member Author

bluwy commented Sep 12, 2024

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

@patak-dev patak-dev merged commit ba37df0 into main Sep 12, 2024
11 of 12 checks passed
@patak-dev patak-dev deleted the create-vite-picocolors branch September 12, 2024 09:30
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