wxt-dev / wxt-dev/wxt

Defer logs until build is finished

Open
#1,266 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
10.5k
Forks
564
PR merge metrics
No merged PRs in 30d

Description

Feature Request

If Vite logs any messages, it can clutter up the build output. Instead, WXT should intercept logs and wait to print them until AFTER the build has finished. It should probably include some kind of label saying which build step the message came from.

Ideally, this code should go inside the rebuild function, and print logs before printing bundle summary.

https://github.com/wxt-dev/wxt/blob/main/packages/wxt/src/core/utils/building/rebuild.ts

Is your feature request related to a bug?

N/A

What are the alternatives?

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/wxt/src/core/utils/building/rebuild.ts and inspect the rebuild function and its current build logging flow. Defer Vite messages until the build finishes, label their originating build step, and print them before the bundle summary; verify the resulting build output preserves that ordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.