diff --git a/packages/core/src/baseclient.ts b/packages/core/src/baseclient.ts index a1702672cf97..4a63fc5660bc 100644 --- a/packages/core/src/baseclient.ts +++ b/packages/core/src/baseclient.ts @@ -53,7 +53,7 @@ export abstract class BaseClient implement protected readonly _dsn?: Dsn; /** Array of used integrations. */ - protected readonly _integrations: IntegrationIndex; + protected readonly _integrations: IntegrationIndex = {}; /** Is the client still processing a call? */ protected _processing: boolean = false; @@ -72,7 +72,9 @@ export abstract class BaseClient implement this._dsn = new Dsn(options.dsn); } - this._integrations = setupIntegrations(this._options); + if (!options.enabled) { + this._integrations = setupIntegrations(this._options); + } } /**