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
dead code from instanceOf.ts
is not tree shaked for browser due globalThis.process
#3925
Comments
Any update on this issue? This is a blocker for us to upgrade to newer versions of graphql and there's an advisory for the version we're currently on: GHSA-9pv7-vfvm-6vr7 |
Can we get an update on this? This is a security warning caused by this GHSA-9pv7-vfvm-6vr7 |
For now you can use something like
after #4022 most bundlers will be covered however it is possible you will need the following in some
When a minifier sees these met conditions it will prune the unused branch for you. |
after #3923 and #3501 dead code from instanceOf is no longer tree shaked for browsers
@IvanGoncharov wrote
but this happens only when using
globalThis.process.env.NODE_ENV
The text was updated successfully, but these errors were encountered: