Skip to content

Have vite-node exit when it emits a warning #7580

Answered by hi-ogawa
dslatkin asked this question in Q&A
Discussion options

You must be logged in to vote

There's no such mode builtin, but depending on where that warning is coming from, you might be able to intercept logging from customLogger https://vite.dev/config/shared-options.html#customlogger (or plugin onLog hook https://rollupjs.org/plugin-development/#onlog) and process.exit(1) manually.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dslatkin
Comment options

Answer selected by dslatkin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants