-
Notifications
You must be signed in to change notification settings - Fork 122
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
Allow passing --no-warnings on to node process #275
Conversation
Could you add this to the list of known node command-line arguments? I'd prefer to pass this on rather than hiding warnings when people aren't expecting that. |
That makes sense. I tried to pass it first but I didn't make it through. And I was also under the impression that it needs to come before the loader argument, or it won't be effective there, but maybe I'm wrong. I'll spend more time on this tomorrow. |
Useful e.g. to hide warnings about experimental-loader / experimental-modules
9f7d3e9
to
0e63fe6
Compare
@bjornstar I've adjusted this now. I needed to change from |
Looks good, can I trouble you for a test to ensure the |
Argh, this is actually not working yet. I spent a while trying to understand what's wrong, and there are two problems:
|
The part that turns everything upside down is here: Sadly this behavior can't be turned off. |
node does a lot of custom argument parsing so it's quite challenging to replicate their behavior. We use nodeOptional to pull the known node arguments off of argv and handle them ourselves instead of passing them to minimist. Originally it was because they have optional values which minimist does not support hence the name optional. We can change the name to something better. |
I went ahead and implemented it, i'll get a release out shortly. Thanks for the contributions! |
Happy to help where I can! Thank you for the fast responses! |
to hide warnings about experimental-loader / experimental-modules