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
@@ -42,7 +43,7 @@ function codecovUnpluginFactory({
42
43
43
44
const options = normalizeOptions ( userOptions ) ;
44
45
45
- const { sentryHub, sentryMetrics } = createSentryInstance (
46
+ const { sentryHub, sentryMetrics, sentryClient } = createSentryInstance (
46
47
options ,
47
48
unpluginMetaContext . framework ,
48
49
) ;
@@ -84,6 +85,14 @@ function codecovUnpluginFactory({
84
85
}
85
86
}
86
87
88
+ plugins . push (
89
+ telemetryPlugin ( {
90
+ sentryClient,
91
+ sentryHub,
92
+ shouldSendTelemetry : options . telemetry ,
93
+ } ) ,
94
+ ) ;
95
+
87
96
if ( options ?. enableBundleAnalysis ) {
88
97
plugins . push (
89
98
bundleAnalysisPluginFactory ( {
You can’t perform that action at this time.
0 commit comments