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

Expand the debug level so users can see the workers' plugins #9538

Closed
4 tasks done
dysbulic opened this issue Aug 4, 2022 · 2 comments · Fixed by #9553
Closed
4 tasks done

Expand the debug level so users can see the workers' plugins #9538

dysbulic opened this issue Aug 4, 2022 · 2 comments · Fixed by #9553
Labels

Comments

@dysbulic
Copy link

dysbulic commented Aug 4, 2022

Description

Currently, when specifying the --debug option to vite build, the output displays the worker's plugins as:

Screenshot from 2022-08-04 12-30-48

It'd be really nice if those had names. The active plugins list is really informative. Obviously, lots of stuff is going on in the background, and that really helped me understand what it is:

Screenshot from 2022-08-04 12-52-09

Suggested solution

I'm assuming those plugins have names. Show those.

Alternative

I don't think there's any danger of having the screen run on too long. And surely there's some short moniker used to differentiate those plugins.

It looks to be to just be an oversight and probably relatively quick to fix.

Additional context

No response

Validations

@sapphi-red
Copy link
Member

sapphi-red commented Aug 4, 2022

It seems plugins property have a special handling here. I think your suggestion makes sense.

if (process.env.DEBUG) {
debug(`using resolved config: %O`, {
...resolved,
plugins: resolved.plugins.map((p) => p.name)
})
}

@github-actions
Copy link

github-actions bot commented Aug 5, 2022

Hello @dysbulic. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it!

@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants