-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Option --config
of vite-node
not working
#3714
Comments
Start a new pull request in StackBlitz Codeflow. |
I suppose you can just remove https://stackblitz.com/edit/vitejs-vite-29jczg?file=package.json
|
If I remember correctly, it should still process arguments that come before the file name. Only arguments after the file name are passed down as |
Probably it was difficult to implement this on top of cac argument handling #2793. Currently vitest/packages/vite-node/src/cli.ts Lines 55 to 59 in b561c32
But now looking at the other PR #3574 which changed options to be passed to the script itself, maybe it might be now easier to achieve this. Btw, I realized |
Using the shebang way might be a option..?
|
Describe the bug
The
--config
option is not taken into account andvite-node
continues to use thevite.config.js
configuration file.Reproduction
https://stackblitz.com/edit/vitejs-vite-yn6aom?file=package.json
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: