-
Hey all, Just wondering if it's possible to have I am running it like this:
and I get this warning
but the script carries on. I have fixed that issue, but I'm wondering just in general, is there a way to make vite-node more robust to have it exit with non-zero on a warning like this? Asking the CLI for help I see $ npx vite-node --help
vite-node/3.0.6
Usage:
$ vite-node [...files]
Commands:
[...files]
For more info, run any command with the `--help` flag:
$ vite-node --help
Options:
-r, --root <path> Use specified root directory
-c, --config <path> Use specified config file
-m, --mode <mode> Set env mode
-w, --watch Restart on file changes, similar to "nodemon"
--script Use vite-node as a script runner
--options <options> Use specified Vite server options
-v, --version Output the version number
-h, --help Display help for command
-v, --version Display version number But I'm not sure how I would configure these options to achieve what I'm looking for. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There's no such mode builtin, but depending on where that warning is coming from, you might be able to intercept logging from |
Beta Was this translation helpful? Give feedback.
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 pluginonLog
hook https://rollupjs.org/plugin-development/#onlog) andprocess.exit(1)
manually.