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
Sentry checks for require inside an if to throw an if no appName is provided and it can't require Electron. Unfortunately, esbuild thinks that this is a dynamic require and throws a warning.
Is it possible to not warn in case some code is just checking for the existence of require?
The text was updated successfully, but these errors were encountered:
Is it possible to not warn in case some code is just checking for the existence of require?
Well this code isn't checking for the existence of require. This code will crash if require is not defined. Checking for the existence of require would involve using typeof require instead.
I should probably just remove this warning since people keep giving me grief about it. The alternative is to silently generate potentially broken bundles. I'll change esbuild to do that instead.
Sentry checks for
require
inside an if to throw an if noappName
is provided and it can't require Electron. Unfortunately, esbuild thinks that this is a dynamicrequire
and throws a warning.Is it possible to not warn in case some code is just checking for the existence of require?
The text was updated successfully, but these errors were encountered: