@sentry/core
Version:
Base implementation for all Sentry JavaScript SDKs
18 lines (17 loc) • 424 B
JavaScript
// src/utils/env.ts
/**
* Figures out if we're building a browser bundle.
*
* @returns true if this is a browser bundle build.
*/
function isBrowserBundle() {
return typeof __SENTRY_BROWSER_BUNDLE__ !== "undefined" && !!__SENTRY_BROWSER_BUNDLE__;
}
/**
* Get source of SDK.
*/
function getSDKSource() {
/*! __SENTRY_SDK_SOURCE__ */ return "npm";
}
export { getSDKSource, isBrowserBundle };
//# sourceMappingURL=env.js.map