File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed
core/src/integrations/featureFlags
node/src/integrations/featureFlagShims Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ export const growthbookIntegration = defineIntegration(
51
51
if ( typeof proto . getFeatureValue === 'function' ) {
52
52
fill ( proto , 'getFeatureValue' , _wrapAndCaptureBooleanResult ) ;
53
53
}
54
-
55
54
} ,
56
55
57
56
processEvent ( event : Event , _hint : EventHint , _client : Client ) : Event {
Original file line number Diff line number Diff line change 1
- import {
2
- defineIntegration ,
3
- growthbookIntegration as coreGrowthbookIntegration ,
4
- isBrowser ,
5
- } from '@sentry/core' ;
1
+ import { growthbookIntegration as coreGrowthbookIntegration } from '@sentry/core' ;
6
2
7
3
/**
8
- * Shim for the GrowthBook integration to avoid runtime errors when imported on the server.
4
+ * Re-export the core GrowthBook integration for Node.js usage.
5
+ * The core integration is runtime-agnostic and works in both browser and Node environments.
9
6
*/
10
- export const growthbookIntegrationShim = defineIntegration (
11
- ( options : Parameters < typeof coreGrowthbookIntegration > [ 0 ] ) => {
12
- if ( ! isBrowser ( ) ) {
13
- // On Node, just return the core integration so Node SDKs can also use it.
14
- return coreGrowthbookIntegration ( options ) ;
15
- }
16
-
17
- // In browser, still return the integration to preserve behavior.
18
- return coreGrowthbookIntegration ( options ) ;
19
- } ,
20
- ) ;
7
+ export const growthbookIntegrationShim = coreGrowthbookIntegration ;
You can’t perform that action at this time.
0 commit comments