File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/bundler-plugin-core/src Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {
19
19
type NormalizedOptions ,
20
20
} from "./utils/normalizeOptions.ts" ;
21
21
import { createSentryInstance } from "./sentry.ts" ;
22
+ import { telemetryPlugin } from "./plugins/telemetry.ts" ;
22
23
23
24
const NODE_VERSION_RANGE = ">=18.18.0" ;
24
25
@@ -51,7 +52,7 @@ function codecovUnpluginFactory({
51
52
return plugins ;
52
53
}
53
54
54
- const { sentryHub, sentryMetrics } = createSentryInstance (
55
+ const { sentryHub, sentryMetrics, sentryClient } = createSentryInstance (
55
56
options ,
56
57
unpluginMetaContext . framework ,
57
58
) ;
@@ -93,6 +94,14 @@ function codecovUnpluginFactory({
93
94
}
94
95
}
95
96
97
+ plugins . push (
98
+ telemetryPlugin ( {
99
+ sentryClient,
100
+ sentryHub,
101
+ shouldSendTelemetry : options . telemetry ,
102
+ } ) ,
103
+ ) ;
104
+
96
105
if ( options ?. enableBundleAnalysis ) {
97
106
plugins . push (
98
107
bundleAnalysisPluginFactory ( {
You can’t perform that action at this time.
0 commit comments