You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that I can silent the warnings with try catch around a require, but that's not really a solution when the require is in node_modules and it's a dependency of one of my dependencies. I guess I can try to require my dependency instead of import it, but then I'm losing TypeScript types and all in all it is a bit silly :)
I would love to be able to "acknowledge" warnings, if I see a new one, I'd investigate and check whether it might be an issue or not, if it's not an issue, I want to silence it (an array of packages to silence is one option that comes to mind).
Did anyone find a nice way to deal with that?
BTW: great job on this package, the speed improvement and the different workflow that this enables is mind-blowing. Thanks!
The text was updated successfully, but these errors were encountered:
You can disable the printing of warnings by setting the logLevel setting to error in esbuild's API. If you would still like to see certain warnings, you can print them yourself by iterating over the warnings array returned from esbuild's API. If you would like to pretty-print the warnings using esbuild's log style, you can call the formatMessages API.
ok, interesting approach. but is there a chance to SEE those warning? One of the warnings did help me to fix my build, it would be super hard to figure out without that.
With the latest release, you can now opt-in to seeing some of these messages that you could have seen previously (along with some additional ones) with --log-level=debug.
I understand that I can silent the warnings with try catch around a require, but that's not really a solution when the require is in node_modules and it's a dependency of one of my dependencies. I guess I can try to require my dependency instead of import it, but then I'm losing TypeScript types and all in all it is a bit silly :)
I would love to be able to "acknowledge" warnings, if I see a new one, I'd investigate and check whether it might be an issue or not, if it's not an issue, I want to silence it (an array of packages to silence is one option that comes to mind).
Did anyone find a nice way to deal with that?
BTW: great job on this package, the speed improvement and the different workflow that this enables is mind-blowing. Thanks!
The text was updated successfully, but these errors were encountered: