Skip to content

chore: replace picocolors with builtins#2210

Open
eupthere wants to merge 1 commit intowxt-dev:mainfrom
eupthere:remove-picocolors
Open

chore: replace picocolors with builtins#2210
eupthere wants to merge 1 commit intowxt-dev:mainfrom
eupthere:remove-picocolors

Conversation

@eupthere
Copy link
Copy Markdown

Overview

  • Removed picocolors dependency from wxt package.
  • Introduced a new color utility for text styling.
  • Updated all instances of picocolors to use the new color utility.

Manual Testing

# Build the CLI
pnpm --filter wxt build

# Run a command that prints the header and normal logs
node packages/wxt/dist/cli/index.mjs --help

# Run a command that hits more colored log output, for example inside the demo app
cd packages/wxt-demo
node ../wxt/dist/cli/index.mjs zip

Results

image image

Related Issue

This PR closes #2180

@eupthere eupthere requested a review from aklinker1 as a code owner March 24, 2026 13:42
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 24, 2026

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 7e6a2eb
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/69c842f6f175370008acd5e2
😎 Deploy Preview https://deploy-preview-2210--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the pkg/wxt Includes changes to the `packages/wxt` directory label Mar 24, 2026
Copy link
Copy Markdown
Collaborator

@PatrykKuniczak PatrykKuniczak left a comment

Choose a reason for hiding this comment

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

LGTM

- Removed `picocolors` dependency from wxt package.
- Introduced a new `color` utility for text styling.
- Updated all instances of `picocolors` to use the new `color` utility.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

❌ Patch coverage is 64.28571% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.30%. Comparing base (ffdd15e) to head (7e6a2eb).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
packages/wxt/src/core/utils/color.ts 80.95% 4 Missing ⚠️
packages/wxt/src/core/clean.ts 0.00% 3 Missing ⚠️
...ages/wxt/src/core/utils/building/internal-build.ts 25.00% 2 Missing and 1 partial ⚠️
packages/wxt/src/core/create-server.ts 0.00% 2 Missing ⚠️
packages/wxt/src/core/initialize.ts 33.33% 1 Missing and 1 partial ⚠️
packages/wxt/src/core/utils/syntax-errors.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2210      +/-   ##
==========================================
- Coverage   76.43%   76.30%   -0.14%     
==========================================
  Files         115      116       +1     
  Lines        3094     3115      +21     
  Branches      685      685              
==========================================
+ Hits         2365     2377      +12     
- Misses        648      656       +8     
- Partials       81       82       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 28, 2026

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@2210

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@2210

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@2210

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@2210

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@2210

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@2210

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@2210

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@2210

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@2210

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@2210

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@2210

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@2210

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@2210

wxt

npm i https://pkg.pr.new/wxt@2210

commit: 7e6a2eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg/wxt Includes changes to the `packages/wxt` directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace picocolors with builtins

2 participants