Skip to content

Commit 22afbd4

Browse files
committed
use telem plugin
1 parent f97223d commit 22afbd4

File tree

1 file changed

+10
-1
lines changed
  • packages/bundler-plugin-core/src

1 file changed

+10
-1
lines changed

packages/bundler-plugin-core/src/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
type NormalizedOptions,
2020
} from "./utils/normalizeOptions.ts";
2121
import { createSentryInstance } from "./sentry.ts";
22+
import { telemetryPlugin } from "./plugins/telemetry.ts";
2223

2324
const NODE_VERSION_RANGE = ">=18.18.0";
2425

@@ -51,7 +52,7 @@ function codecovUnpluginFactory({
5152
return plugins;
5253
}
5354

54-
const { sentryHub, sentryMetrics } = createSentryInstance(
55+
const { sentryHub, sentryMetrics, sentryClient } = createSentryInstance(
5556
options,
5657
unpluginMetaContext.framework,
5758
);
@@ -93,6 +94,14 @@ function codecovUnpluginFactory({
9394
}
9495
}
9596

97+
plugins.push(
98+
telemetryPlugin({
99+
sentryClient,
100+
sentryHub,
101+
shouldSendTelemetry: options.telemetry,
102+
}),
103+
);
104+
96105
if (options?.enableBundleAnalysis) {
97106
plugins.push(
98107
bundleAnalysisPluginFactory({

0 commit comments

Comments
 (0)