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 {
1919 type NormalizedOptions ,
2020} from "./utils/normalizeOptions.ts" ;
2121import { createSentryInstance } from "./sentry.ts" ;
22+ import { telemetryPlugin } from "./plugins/telemetry.ts" ;
2223
2324const NODE_VERSION_RANGE = ">=18.18.0" ;
2425
@@ -42,7 +43,7 @@ function codecovUnpluginFactory({
4243
4344 const options = normalizeOptions ( userOptions ) ;
4445
45- const { sentryHub, sentryMetrics } = createSentryInstance (
46+ const { sentryHub, sentryMetrics, sentryClient } = createSentryInstance (
4647 options ,
4748 unpluginMetaContext . framework ,
4849 ) ;
@@ -84,6 +85,14 @@ function codecovUnpluginFactory({
8485 }
8586 }
8687
88+ plugins . push (
89+ telemetryPlugin ( {
90+ sentryClient,
91+ sentryHub,
92+ shouldSendTelemetry : options . telemetry ,
93+ } ) ,
94+ ) ;
95+
8796 if ( options ?. enableBundleAnalysis ) {
8897 plugins . push (
8998 bundleAnalysisPluginFactory ( {
You can’t perform that action at this time.
0 commit comments