diff --git a/shared/AppInsightsCore/src/utils/EnvUtils.ts b/shared/AppInsightsCore/src/utils/EnvUtils.ts index b8209b2b1..67a16a25e 100644 --- a/shared/AppInsightsCore/src/utils/EnvUtils.ts +++ b/shared/AppInsightsCore/src/utils/EnvUtils.ts @@ -290,7 +290,8 @@ export function useXDomainRequest(): boolean | undefined { * Checks if XMLHttpRequest is supported * @returns True if supported, otherwise false */ -/*#__NO_SIDE_EFFECTS__*/ +// Do not mark this function as side-effect-free. Rollup can remove capability checks +// guarded by this return value, which prevents XHR instrumentation from being installed. export function isXhrSupported(): boolean { let isSupported = false; try {