Defer logs until build is finished
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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