vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.49k stars 6.18k forks source link

Vite cli swallows thrown errors #18010

Open woksin opened 2 months ago

woksin commented 2 months ago

Description

As a developer using the cli I want to be able to see the full verbose logs when running a command (for example build) in order to figure out what's going wrong

Suggested solution

Add an option in the cli for verbose logging

Alternative

No response

Additional context

No response

Validations

Additional context: When running vite build using a custom plugin it was hard to figure out what was really wrong with the code when the cli did not report the whole error stack trace, which would be helpful 😄

bluwy commented 2 months ago

Can you share an example or repro of what's being swallowed? Or pinpoint the code in Vite where it swallows errors?