Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/getsentry/sentry-javascript
/ isBrowserBundle
Function
isBrowserBundle
packages/core/src/utils/env.ts:25–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
23
* @returns true
if
this is a browser bundle build.
24
*/
25
export
function
isBrowserBundle(): boolean {
26
return
typeof __SENTRY_BROWSER_BUNDLE__ !==
'undefined'
&& !!__SENTRY_BROWSER_BUNDLE__;
27
}
28
29
/**
30
* Get source of SDK.
Callers
1
isNodeEnv
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected